Skip to content

Commit c3ec6f7

Browse files
fix(timelinedesigner): remove unnecessary scrollbars
1 parent 454bec1 commit c3ec6f7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

client/app/bundles/course/reference-timelines/components/TimelinesOverview/TimelinesOverview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const TimelinesOverview = (props: TimelinesOverviewProps): JSX.Element => {
3030

3131
return (
3232
<div className="relative py-4">
33-
<aside className="flex items-start space-x-4 overflow-x-scroll pr-56">
33+
<aside className="scrollbar-hidden flex items-start space-x-4 overflow-x-scroll pr-56">
3434
{timelines.map((timeline) => (
3535
<TimelinesOverviewItem
3636
key={timeline.id}

client/app/bundles/course/reference-timelines/views/DayView/DayView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const DayView = (): JSX.Element => {
7777
/>
7878
</section>
7979

80-
<section className="pointer-events-auto flex overflow-scroll overscroll-contain border-0 border-t border-solid border-neutral-200 pb-28">
80+
<section className="scrollbar-hidden pointer-events-auto flex h-full overflow-y-scroll overscroll-contain border-0 border-t border-solid border-neutral-200">
8181
<ItemsSidebar
8282
className="w-[32rem]"
8383
for={filteredItems}
@@ -89,7 +89,7 @@ const DayView = (): JSX.Element => {
8989

9090
<aside
9191
ref={contentsRef}
92-
className="scrollbar-hidden ml-[1px] h-fit w-full overflow-x-scroll"
92+
className="ml-[1px] h-fit min-h-full w-full overflow-x-scroll pb-28"
9393
onScroll={(e): void => {
9494
if (e.currentTarget.scrollLeft)
9595
calendarRef.current?.scrollTo(e.currentTarget.scrollLeft);

client/app/theme/index.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
/* For Firefox 64+ and Firefox for Android 64+ */
2121
.scrollbar-hidden {
2222
scrollbar-width: none;
23-
scrollbar-color: transparent;
2423
}
2524

2625
/* For Blink- and WebKit-based browsers */
2726
.scrollbar-hidden::-webkit-scrollbar {
28-
width: 0;
29-
background: transparent;
27+
display: none;
3028
}
3129
}

0 commit comments

Comments
 (0)