mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 09:03:58 +00:00
table control - noCellPadding option
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
export let clickable = false;
|
export let clickable = false;
|
||||||
export let disableFocusOutline = false;
|
export let disableFocusOutline = false;
|
||||||
export let emptyMessage = null;
|
export let emptyMessage = null;
|
||||||
|
export let noCellPadding = false;
|
||||||
|
|
||||||
export let domTable = undefined;
|
export let domTable = undefined;
|
||||||
|
|
||||||
@@ -77,7 +78,7 @@
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{#each columnList as col}
|
{#each columnList as col}
|
||||||
<td class:isHighlighted={col.isHighlighted && col.isHighlighted(row)}>
|
<td class:isHighlighted={col.isHighlighted && col.isHighlighted(row)} class:noCellPadding>
|
||||||
{#if col.component}
|
{#if col.component}
|
||||||
<svelte:component this={col.component} {...col.getProps(row)} />
|
<svelte:component this={col.component} {...col.getProps(row)} />
|
||||||
{:else if col.formatter}
|
{:else if col.formatter}
|
||||||
@@ -138,6 +139,9 @@
|
|||||||
}
|
}
|
||||||
tbody td {
|
tbody td {
|
||||||
border: 1px solid var(--theme-border);
|
border: 1px solid var(--theme-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody td:not(.noCellPadding) {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user