mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-14 01:43:37 +01:00
Change scrollbar design
This commit is contained in:
parent
555fb288d1
commit
9576406eb1
@ -35,3 +35,30 @@
|
|||||||
.raw-html .invisible {
|
.raw-html .invisible {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-scrollable {
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: auto;
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 6px !important;
|
||||||
|
height: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background-color: rgb(203 213 225);
|
||||||
|
border-radius: 4px !important;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
border-radius: 4px !important;
|
||||||
|
background-color: rgb(241 245 249);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -55,7 +55,7 @@ export default function Profile(props: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ height: 'calc(100% - 50px)' }} className="overflow-y-auto">
|
<div style={{ height: 'calc(100% - 50px)' }} className="overflow-y-auto timeline-scrollable">
|
||||||
<Flowbite theme={{ theme: customTheme }}>
|
<Flowbite theme={{ theme: customTheme }}>
|
||||||
{user && relationship && (
|
{user && relationship && (
|
||||||
<>
|
<>
|
||||||
|
@ -173,6 +173,7 @@ export default function Timeline(props: Props) {
|
|||||||
scrollerRef={ref => {
|
scrollerRef={ref => {
|
||||||
scrollerRef.current = ref as HTMLElement
|
scrollerRef.current = ref as HTMLElement
|
||||||
}}
|
}}
|
||||||
|
className="timeline-scrollable"
|
||||||
firstItemIndex={firstItemIndex}
|
firstItemIndex={firstItemIndex}
|
||||||
atTopStateChange={prependUnreads}
|
atTopStateChange={prependUnreads}
|
||||||
data={statuses}
|
data={statuses}
|
||||||
|
Loading…
Reference in New Issue
Block a user