mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 03:53:57 +00:00
fixes for firefox
This commit is contained in:
@@ -245,6 +245,7 @@
|
|||||||
import openReferenceForm, { openPrimaryKeyForm } from '../formview/openReferenceForm';
|
import openReferenceForm, { openPrimaryKeyForm } from '../formview/openReferenceForm';
|
||||||
import openNewTab from '../utility/openNewTab';
|
import openNewTab from '../utility/openNewTab';
|
||||||
import ErrorInfo from '../elements/ErrorInfo.svelte';
|
import ErrorInfo from '../elements/ErrorInfo.svelte';
|
||||||
|
import resizeObserver from '../utility/resizeObserver';
|
||||||
|
|
||||||
export let onLoadNextData = undefined;
|
export let onLoadNextData = undefined;
|
||||||
export let grider = undefined;
|
export let grider = undefined;
|
||||||
@@ -1067,11 +1068,13 @@
|
|||||||
class="header-cell"
|
class="header-cell"
|
||||||
data-row="header"
|
data-row="header"
|
||||||
data-col="header"
|
data-col="header"
|
||||||
bind:clientHeight={rowHeight}
|
use:resizeObserver={true}
|
||||||
|
on:resize={e => {
|
||||||
|
// @ts-ignore
|
||||||
|
rowHeight = e.detail.height;
|
||||||
|
}}
|
||||||
style={`width:${headerColWidth}px; min-width:${headerColWidth}px; max-width:${headerColWidth}px`}
|
style={`width:${headerColWidth}px; min-width:${headerColWidth}px; max-width:${headerColWidth}px`}
|
||||||
>
|
/>
|
||||||
|
|
||||||
</td>
|
|
||||||
{#each visibleRealColumns as col (col.uniqueName)}
|
{#each visibleRealColumns as col (col.uniqueName)}
|
||||||
<td
|
<td
|
||||||
class="header-cell"
|
class="header-cell"
|
||||||
|
|||||||
@@ -459,7 +459,7 @@
|
|||||||
class="header-cell"
|
class="header-cell"
|
||||||
data-row={rowIndex}
|
data-row={rowIndex}
|
||||||
data-col={chunkIndex * 2}
|
data-col={chunkIndex * 2}
|
||||||
style={`height: ${rowHeight}px`}
|
style={rowHeight > 1 ? `height: ${rowHeight}px` : undefined}
|
||||||
class:isSelected={currentCell[0] == rowIndex && currentCell[1] == chunkIndex * 2}
|
class:isSelected={currentCell[0] == rowIndex && currentCell[1] == chunkIndex * 2}
|
||||||
bind:this={domCells[`${rowIndex},${chunkIndex * 2}`]}
|
bind:this={domCells[`${rowIndex},${chunkIndex * 2}`]}
|
||||||
use:resizeObserver={chunkIndex == 0 && rowIndex == 0}
|
use:resizeObserver={chunkIndex == 0 && rowIndex == 0}
|
||||||
@@ -561,6 +561,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
|
|||||||
Reference in New Issue
Block a user