Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
Hide suggestions when expanding the bottom sheet
Browse files Browse the repository at this point in the history
Former-commit-id: 172c3837953d79df7e7c3e11821fc73ac2cbba02 [formerly 703a6b7]
Former-commit-id: cca9db82d443c02ce1f5acf8e2a901d45e500926
Former-commit-id: 52e7817
  • Loading branch information
sentialx committed Feb 16, 2019
1 parent 1de992f commit 2bdac34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/app/components/BottomSheet/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styled, { css } from 'styled-components';
import { shadows } from '~/shared/mixins';

export const StyledBottomSheet = styled.div`
position: absolute;
Expand All @@ -13,6 +14,7 @@ export const StyledBottomSheet = styled.div`
transition: 0.3s top;
width: 700px;
color: black;
box-shadow: ${shadows(4)};
`;

export const SmallBar = styled.div`
Expand Down
1 change: 1 addition & 0 deletions src/renderer/app/components/Overlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const onWheel = (e: React.WheelEvent<HTMLDivElement>) => {

if (bsHeight <= window.innerHeight) {
if (e.deltaY > 0) {
store.suggestionsStore.suggestions = [];
if (target.scrollTop === 0) {
TweenLite.to(target, 0.2, {
scrollTop: bsHeight - 128,
Expand Down

0 comments on commit 2bdac34

Please sign in to comment.