Browse Source

fix: replace scroll with auto for horizontal scrollbars

pull/7889/head
mertmit 8 months ago
parent
commit
d96a42adae
  1. 6
      packages/nc-gui/assets/style.scss
  2. 2
      packages/nc-gui/components/project/ShareBaseDlg.vue

6
packages/nc-gui/assets/style.scss

@ -113,7 +113,7 @@ main {
} }
.nc-scrollbar-x-md { .nc-scrollbar-x-md {
overflow-x: scroll; overflow-x: auto !important;
scrollbar-width: thin !important; scrollbar-width: thin !important;
@ -174,7 +174,7 @@ main {
} }
.nc-scrollbar-x-md-dark { .nc-scrollbar-x-md-dark {
overflow-x: scroll; overflow-x: auto !important;
scrollbar-width: thin !important; scrollbar-width: thin !important;
@ -204,7 +204,7 @@ main {
} }
.nc-scrollbar-x-lg { .nc-scrollbar-x-lg {
overflow-x: scroll; overflow-x: auto !important;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 8px; width: 8px;

2
packages/nc-gui/components/project/ShareBaseDlg.vue

@ -235,7 +235,7 @@ const onRoleChange = (role: keyof typeof RoleLabels) => (inviteData.roles = role
<div class="flex justify-between gap-3 w-full"> <div class="flex justify-between gap-3 w-full">
<div <div
ref="divRef" ref="divRef"
class="flex items-center border-1 gap-1 w-full overflow-x-scroll nc-scrollbar-x-md items-center h-10 rounded-lg !min-w-96" class="flex items-center border-1 gap-1 w-full overflow-x-auto nc-scrollbar-x-md items-center h-10 rounded-lg !min-w-96"
tabindex="0" tabindex="0"
:class="{ :class="{
'border-primary/100': isDivFocused, 'border-primary/100': isDivFocused,

Loading…
Cancel
Save