Browse Source

fix: Removed sticky display column for mobile view

pull/6490/head
Muhammed Mustafa 1 year ago
parent
commit
43a09b02d0
  1. 10
      packages/nc-gui/components/smartsheet/grid/Table.vue

10
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1149,6 +1149,10 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => {
<table
ref="smartTable"
class="xc-row-table nc-grid backgroundColorDefault !h-auto bg-white"
:class="{
mobile: isMobileMode,
desktop: !isMobileMode,
}"
@contextmenu="showContextMenu"
>
<thead v-show="hideHeader !== true" ref="tableHeadEl">
@ -1793,20 +1797,22 @@ const expandAndLooseFocus = (row: Row, col: Record<string, any>) => {
background: white;
}
.desktop {
thead th:nth-child(2) {
position: sticky !important;
left: 85px;
z-index: 5;
left: 85px;
@apply border-r-1 border-r-gray-200;
}
tbody td:nth-child(2) {
position: sticky !important;
left: 85px;
z-index: 4;
left: 85px;
background: white;
@apply border-r-1 border-r-gray-100;
}
}
.nc-grid-skelton-loader {
thead th:nth-child(2) {

Loading…
Cancel
Save