mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 15:57:07 +00:00
refactor(nc-gui): rich text cell
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user