mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 07:16:00 +00:00
hide column manager by default, style cleenup
This commit is contained in:
@@ -4,23 +4,23 @@
|
|||||||
export let collapsed;
|
export let collapsed;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div on:click|stopPropagation class='collapseButtonMarker'>
|
<div on:click|stopPropagation class="collapseButtonMarker">
|
||||||
<FontIcon icon={collapsed ? 'icon triple-right' : 'icon triple-left'} />
|
<FontIcon icon={collapsed ? 'icon triple-right' : 'icon triple-left'} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
div {
|
||||||
position: absolute;
|
color: var(--theme-font-3);
|
||||||
|
text-align: center;
|
||||||
|
/* position: absolute;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
color: var(--theme-font-3);
|
|
||||||
background-color: var(--theme-bg-1);
|
background-color: var(--theme-bg-1);
|
||||||
border: 1px solid var(--theme-bg-1);
|
border: 1px solid var(--theme-bg-1); */
|
||||||
}
|
}
|
||||||
|
|
||||||
div:hover {
|
div:hover {
|
||||||
color: var(--theme-font-hover);
|
color: var(--theme-font-hover);
|
||||||
border: var(--theme-border);
|
border: 1px solid var(--theme-font-1);
|
||||||
top: 4px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
setContext('macroValues', macroValues);
|
setContext('macroValues', macroValues);
|
||||||
|
|
||||||
let managerSize;
|
let managerSize;
|
||||||
const collapsedLeftColumnStore = writable(getBoolSettingsValue('dataGrid.hideLeftColumn', false));
|
const collapsedLeftColumnStore = writable(getBoolSettingsValue('dataGrid.hideLeftColumn', true));
|
||||||
|
|
||||||
$: isFormView = !!(formDisplay && formDisplay.config && formDisplay.config.isFormView);
|
$: isFormView = !!(formDisplay && formDisplay.config && formDisplay.config.isFormView);
|
||||||
$: isJsonView = !!config?.isJsonView;
|
$: isJsonView = !!config?.isJsonView;
|
||||||
|
|||||||
@@ -13,9 +13,14 @@ export function isRegularCell(cell: CellAddress): cell is RegularCellAddress {
|
|||||||
return _.isNumber(row) && _.isNumber(col);
|
return _.isNumber(row) && _.isNumber(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function normalizeHeaderForSelection(addr: CellAddress): CellAddress {
|
||||||
|
if (addr[0] == 'filter') return ['header', addr[1]];
|
||||||
|
return addr;
|
||||||
|
}
|
||||||
|
|
||||||
export function getCellRange(a: CellAddress, b: CellAddress): CellAddress[] {
|
export function getCellRange(a: CellAddress, b: CellAddress): CellAddress[] {
|
||||||
const [rowA, colA] = a;
|
const [rowA, colA] = normalizeHeaderForSelection(a);
|
||||||
const [rowB, colB] = b;
|
const [rowB, colB] = normalizeHeaderForSelection(b);
|
||||||
|
|
||||||
if (_.isNumber(rowA) && _.isNumber(colA) && _.isNumber(rowB) && _.isNumber(colB)) {
|
if (_.isNumber(rowA) && _.isNumber(colA) && _.isNumber(rowB) && _.isNumber(colB)) {
|
||||||
const rowMin = Math.min(rowA, rowB);
|
const rowMin = Math.min(rowA, rowB);
|
||||||
|
|||||||
Reference in New Issue
Block a user