Skip to content

Commit

Permalink
[GEN-1746]: fix scrollbar issues (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink authored Nov 25, 2024
1 parent 077617c commit 186b890
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions frontend/webapp/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap');

* {
scrollbar-color: black transparent;
scrollbar-width: thin;
}
3 changes: 1 addition & 2 deletions frontend/webapp/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { ApolloWrapper } from '@/lib';
import { ThemeProviderWrapper } from '@/styles';

const LAYOUT_STYLE: React.CSSProperties = {
margin: 0,
position: 'fixed',
scrollbarWidth: 'none',
width: '100vw',
height: '100vh',
margin: 0,
backgroundColor: '#111111',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ const HorizontalScroll = styled.div`
align-items: center;
padding: 12px;
border-bottom: ${({ theme }) => `1px solid ${theme.colors.border}`};
overflow-x: auto;
overflow-x: scroll;
`;

const VerticalScroll = styled.div`
display: flex;
flex-direction: column;
padding: 12px;
overflow-y: auto;
overflow-y: scroll;
`;

export const SearchResults = ({ searchText, onClose }: Props) => {
Expand Down

0 comments on commit 186b890

Please sign in to comment.