fix(grid): unify data grid font size to 13px
This commit is contained in:
1 parent
9418e37c04
commit
f0d4b66489
1 file changed
+6
-6
@@ -6938,7 +6938,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-1.5 py-0 text-xs leading-[26px] outline-none z-10"
|
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-1.5 py-0 text-[13px] leading-[26px] outline-none z-10"
|
||||||
@blur="commitEditFromBlur"
|
@blur="commitEditFromBlur"
|
||||||
@click.stop
|
@click.stop
|
||||||
@keydown.stop="onEditKeydown"
|
@keydown.stop="onEditKeydown"
|
||||||
@@ -7334,7 +7334,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
<div class="relative" :style="{ width: `${totalWidth}px`, height: `${canvasContentHeight}px` }">
|
<div class="relative" :style="{ width: `${totalWidth}px`, height: `${canvasContentHeight}px` }">
|
||||||
<canvas
|
<canvas
|
||||||
ref="canvasRef"
|
ref="canvasRef"
|
||||||
class="canvas-grid-surface dbx-data-grid-font-family sticky left-0 top-0 z-0 block text-[12.5px]/[1rem] font-normal"
|
class="canvas-grid-surface dbx-data-grid-font-family sticky left-0 top-0 z-0 block text-[13px]/[1rem] font-normal"
|
||||||
:style="{ width: `${canvasSurfaceWidth}px`, height: `${canvasViewportHeight}px` }"
|
:style="{ width: `${canvasSurfaceWidth}px`, height: `${canvasViewportHeight}px` }"
|
||||||
@mousemove="onCanvasMouseMove"
|
@mousemove="onCanvasMouseMove"
|
||||||
@mouseleave="onCanvasMouseLeave"
|
@mouseleave="onCanvasMouseLeave"
|
||||||
@@ -7359,7 +7359,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-2.5 py-0 text-[12.5px] leading-[22px] outline-none z-10"
|
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-2.5 py-0 text-[13px] leading-[22px] outline-none z-10"
|
||||||
@blur="commitEditFromBlur"
|
@blur="commitEditFromBlur"
|
||||||
@click.stop
|
@click.stop
|
||||||
@keydown.stop="onEditKeydown"
|
@keydown.stop="onEditKeydown"
|
||||||
@@ -7405,7 +7405,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
<RecycleScroller
|
<RecycleScroller
|
||||||
v-else-if="hasVisibleRows"
|
v-else-if="hasVisibleRows"
|
||||||
ref="scrollerRef"
|
ref="scrollerRef"
|
||||||
class="data-grid-scroller dbx-data-grid-font-family flex-1 overflow-x-auto overscroll-none text-[12.5px]"
|
class="data-grid-scroller dbx-data-grid-font-family flex-1 overflow-x-auto overscroll-none text-[13px]"
|
||||||
:class="{ 'is-scrolling': isScrolling }"
|
:class="{ 'is-scrolling': isScrolling }"
|
||||||
:items="displayItems"
|
:items="displayItems"
|
||||||
:item-size="26"
|
:item-size="26"
|
||||||
@@ -7438,7 +7438,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
<div
|
<div
|
||||||
v-for="col in renderedGridColumns"
|
v-for="col in renderedGridColumns"
|
||||||
:key="col.actualColIdx"
|
:key="col.actualColIdx"
|
||||||
class="group/cell shrink-0 px-3 py-1 border-r border-border whitespace-nowrap overflow-hidden text-ellipsis relative select-none flex items-center tabular-nums text-[12.5px]"
|
class="group/cell shrink-0 px-3 py-1 border-r border-border whitespace-nowrap overflow-hidden text-ellipsis relative select-none flex items-center tabular-nums text-[13px]"
|
||||||
:style="renderedColumnStyle(col.visibleColIdx)"
|
:style="renderedColumnStyle(col.visibleColIdx)"
|
||||||
:class="{
|
:class="{
|
||||||
'text-muted-foreground italic': isNull(item.data[col.actualColIdx]),
|
'text-muted-foreground italic': isNull(item.data[col.actualColIdx]),
|
||||||
@@ -7469,7 +7469,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
|||||||
autocapitalize="off"
|
autocapitalize="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-2.5 py-0 text-[12.5px] leading-[22px] outline-none z-10"
|
class="cell-edit-input absolute inset-0 bg-background border-2 border-primary px-2.5 py-0 text-[13px] leading-[22px] outline-none z-10"
|
||||||
@blur="commitEditFromBlur"
|
@blur="commitEditFromBlur"
|
||||||
@click.stop
|
@click.stop
|
||||||
@keydown.stop="onEditKeydown"
|
@keydown.stop="onEditKeydown"
|
||||||
|
|||||||
Reference in new issue
Block a user