chore: hide space menu scrollbars while keeping scroll. (#328)
Reviewed-on: https://gitea.coracle.social/coracle/flotilla/pulls/328 Co-authored-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social> Co-committed-by: Aditya Chaudhary <30+useradityaa@noreply.coracle.social>
This commit is contained in:
parent
2d6810725f
commit
37e6dd6b7d
2 changed files with 12 additions and 2 deletions
|
|
@ -367,7 +367,8 @@
|
|||
<div class="shrink-0">
|
||||
{@render spaceHeader()}
|
||||
</div>
|
||||
<div class="flex min-h-0 flex-1 flex-col gap-1 py-1 overflow-auto">
|
||||
<div
|
||||
class="space-menu__scroll flex min-h-0 flex-1 flex-col gap-1 overflow-x-hidden overflow-y-auto py-1">
|
||||
{@render spaceNavItems()}
|
||||
{@render spaceRooms()}
|
||||
<div class="h-5 shrink-0"></div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
@layer components {
|
||||
.space-menu__scroll {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.secondary-nav--mobile-space {
|
||||
@apply mt-sai bg-backdrop mb-0 w-full max-w-full grow border-0;
|
||||
|
|
@ -72,7 +81,7 @@
|
|||
}
|
||||
|
||||
.space-menu__scroll {
|
||||
@apply min-h-0 flex-1 gap-3 overflow-y-auto;
|
||||
@apply min-h-0 flex-1 gap-3 overflow-x-hidden overflow-y-auto;
|
||||
}
|
||||
|
||||
.space-menu__status {
|
||||
|
|
|
|||
Loading…
Reference in a new issue