diff --git a/packages/frontend-core/src/components/grid/cells/DataCell.svelte b/packages/frontend-core/src/components/grid/cells/DataCell.svelte index d97edabc01..8ba25ef31b 100644 --- a/packages/frontend-core/src/components/grid/cells/DataCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/DataCell.svelte @@ -67,6 +67,7 @@ {rowIdx} {focused} {selectedUser} + {readonly} error={$error} on:click={() => focusedCellId.set(cellId)} on:contextmenu={e => menu.actions.open(cellId, e)} diff --git a/packages/frontend-core/src/components/grid/cells/GridCell.svelte b/packages/frontend-core/src/components/grid/cells/GridCell.svelte index 52dbed641c..dfc53f6f0c 100644 --- a/packages/frontend-core/src/components/grid/cells/GridCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/GridCell.svelte @@ -8,6 +8,7 @@ export let rowIdx export let defaultHeight = false export let center = false + export let readonly = false $: style = getStyle(width, selectedUser) @@ -27,6 +28,7 @@ class:focused class:error class:center + class:readonly class:default-height={defaultHeight} class:selected-other={selectedUser != null} on:focus @@ -121,7 +123,8 @@ .cell:hover { cursor: default; } - .cell.highlighted:not(.focused) { + .cell.highlighted:not(.focused), + .cell.focused.readonly { --cell-background: var(--cell-background-hover); } .cell.selected:not(.focused) {