refactor(nc-gui): rich text cell

This commit is contained in:
Ramesh Mane
2025-04-28 22:02:44 +00:00
parent da55848f73
commit 263ec9f4c3
4 changed files with 17 additions and 5 deletions

View File

@@ -40,6 +40,8 @@ const isUnderFormula = inject(IsUnderFormulaInj, ref(false))
const cellEventHook = inject(CellEventHookInj, null)
const active = inject(ActiveCellInj, null)
const readOnly = computed(() => readOnlyInj.value || column.value.readonly)
const canvasCellEventData = inject(CanvasCellEventDataInj, reactive<CanvasCellEventDataInjType>({}))
@@ -633,6 +635,7 @@ useResizeObserver(inputWrapperRef, () => {
<div
class="!absolute !hidden nc-text-area-expand-btn group-hover:block z-3 items-center gap-1"
:class="{
'active': active && isCanvasInjected,
'right-1': isForm,
'right-0': !isForm,
'top-0 right-0': isGrid && !isExpandedFormOpen && !isForm,
@@ -849,6 +852,9 @@ textarea:focus {
.long-text-wrapper:hover .nc-text-area-expand-btn {
@apply !flex cursor-pointer;
}
.long-text-wrapper .nc-text-area-expand-btn.active {
@apply !flex;
}
.nc-grid-cell {
&.align-top {