-
-
Notifications
You must be signed in to change notification settings - Fork 45
Fix scrollbar in the settings view #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -59,3 +59,44 @@ body { | |||||||||||||||||||||||
| #title-bar button { | ||||||||||||||||||||||||
| -webkit-app-region: no-drag; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ::-webkit-scrollbar { | ||||||||||||||||||||||||
| width: 8px; /* scrollbar width */ | ||||||||||||||||||||||||
| height: 8px; /* horizontal scrollbar height */ | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ::-webkit-scrollbar-track { | ||||||||||||||||||||||||
| background: transparent; /* track background */ | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ::-webkit-scrollbar-thumb { | ||||||||||||||||||||||||
| background-color: rgba(100, 100, 100, 0.5); /* thumb color */ | ||||||||||||||||||||||||
| border-radius: 10px; /* rounded ends */ | ||||||||||||||||||||||||
| border: 2px solid transparent; /* padding around thumb */ | ||||||||||||||||||||||||
| background-clip: content-box; /* ensures border doesn’t overlap thumb */ | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ::-webkit-scrollbar-thumb:hover { | ||||||||||||||||||||||||
| background-color: rgba(100, 100, 100, 0.7); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .scrollbar-hide { | ||||||||||||||||||||||||
| scrollbar-width: none; /* Firefox */ | ||||||||||||||||||||||||
| -ms-overflow-style: none; /* IE 10+ */ | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .scrollbar-hide::-webkit-scrollbar { | ||||||||||||||||||||||||
| display: none; /* Safari + Chrome */ | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .react-flow__panel.react-flow__controls { | ||||||||||||||||||||||||
| @apply mr-2 mb-6 !rounded-sm; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .react-flow__panel.react-flow__controls button:first-child { | ||||||||||||||||||||||||
| @apply !rounded-t-sm; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| .react-flow__panel.react-flow__controls button:last-child { | ||||||||||||||||||||||||
| @apply !rounded-b-sm; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
Comment on lines
+92
to
+102
|
||||||||||||||||||||||||
| .react-flow__panel.react-flow__controls { | |
| @apply mr-2 mb-6 !rounded-sm; | |
| } | |
| .react-flow__panel.react-flow__controls button:first-child { | |
| @apply !rounded-t-sm; | |
| } | |
| .react-flow__panel.react-flow__controls button:last-child { | |
| @apply !rounded-b-sm; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
.scrollbar-hideclass duplicates the functionality of the existing.no-scrollbarclass (lines 17-24). Both classes hide scrollbars using the same browser-specific properties. Consider removing this duplication and using the existing.no-scrollbarclass instead, or remove the old class if you prefer the new naming convention.