Skip to content

Commit

Permalink
Make scrollbar styling consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Dec 28, 2024
1 parent 6200534 commit ca8f6e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import { DonationNagModal } from './components/donation-nag-modal';
import { createWebNavigator } from './components/navigation/web-navigator';
import { isMobile } from './util/util';
import { Logo16 } from './components/logo';
import './global.css';


// TODO: Onboarding works
Expand Down
6 changes: 1 addition & 5 deletions components/navigation/scroll-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@ const Scrollbar = () => {
const styles = StyleSheet.create({
scrollbar: {
width: 14,
backgroundColor: 'white',
borderColor: 'black',
borderLeftWidth: 1,
backgroundColor: '#ddd',
position: 'absolute',
right: 0,
top: 0,
Expand All @@ -373,8 +371,6 @@ const styles = StyleSheet.create({
thumb: {
width: '100%',
backgroundColor: '#70f',
borderWidth: 1,
borderColor: 'white',
borderRadius: 99,

touchAction: 'none', // prevent selection on web
Expand Down
12 changes: 12 additions & 0 deletions global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
::-webkit-scrollbar {
width: 14px;
}

::-webkit-scrollbar-track {
background: #ddd;
}

::-webkit-scrollbar-thumb {
background-color: #70f;
border-radius: 99px;
}

0 comments on commit ca8f6e4

Please sign in to comment.