From 41b9d5840ddb6b484fc9f309a95d80f62832cfeb Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sun, 26 Oct 2025 22:59:39 +0200 Subject: feat(web): editing cells --- web/src/components/grid/index.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'web/src/components/grid/index.css') diff --git a/web/src/components/grid/index.css b/web/src/components/grid/index.css index 477d40e..93d6f6f 100644 --- a/web/src/components/grid/index.css +++ b/web/src/components/grid/index.css @@ -1,5 +1,6 @@ ntv-grid { display: block; + position: relative; --grid-bg-fill: var(--color-neutral-900); --grid-border-stroke: var(--color-neutral-700); @@ -17,3 +18,17 @@ ntv-grid { ntv-grid > canvas { display: block; } + +ntv-grid input[data-edit-cell] { + position: absolute; + vertical-align: baseline; + background: var(--color-neutral-800); + padding-right: 1px; + padding-bottom: 1px; + color: white; + text-align: center; +} + +ntv-grid input[data-edit-cell]:focus-visible { + outline: none; +} -- cgit v1.2.3