Browse Source

feat: grid border css

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5060/head
mertmit 2 years ago
parent
commit
18e6927a14
  1. 15
      packages/nc-gui/components/smartsheet/Grid.vue

15
packages/nc-gui/components/smartsheet/Grid.vue

@ -714,7 +714,7 @@ const closeAddColumnDropdown = () => {
@contextmenu="showContextMenu" @contextmenu="showContextMenu"
> >
<thead ref="tableHead"> <thead ref="tableHead">
<tr class="nc-grid-header border-1 bg-gray-100 sticky top[-1px] !z-4"> <tr class="nc-grid-header">
<th data-testid="grid-id-column"> <th data-testid="grid-id-column">
<div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" data-testid="nc-check-all"> <div class="w-full h-full bg-gray-100 flex min-w-[70px] pl-5 pr-1 items-center" data-testid="nc-check-all">
<template v-if="!readOnly"> <template v-if="!readOnly">
@ -993,6 +993,7 @@ const closeAddColumnDropdown = () => {
td, td,
th { th {
@apply border-gray-200 border-solid border-b border-r;
min-height: 41px !important; min-height: 41px !important;
height: 41px !important; height: 41px !important;
position: relative; position: relative;
@ -1003,11 +1004,9 @@ const closeAddColumnDropdown = () => {
@apply flex px-1 h-auto; @apply flex px-1 h-auto;
} }
table, table {
td, border-collapse: separate;
th { border-spacing: 0;
@apply !border-1;
border-collapse: collapse;
} }
td { td {
@ -1027,7 +1026,7 @@ const closeAddColumnDropdown = () => {
// todo: replace with css variable // todo: replace with css variable
td.active::after { td.active::after {
@apply border-2 border-solid text-primary border-current bg-primary bg-opacity-5; @apply border-1 border-solid text-primary border-current bg-primary bg-opacity-5;
} }
//td.active::before { //td.active::before {
@ -1081,7 +1080,7 @@ const closeAddColumnDropdown = () => {
position: sticky; position: sticky;
top: -1px; top: -1px;
@apply z-1; @apply z-10 bg-gray-100;
&:hover { &:hover {
.nc-no-label { .nc-no-label {

Loading…
Cancel
Save