Browse Source

fix: Expand btn for long text now only shown on hover and copy paste fixed

pull/7175/head
Muhammed Mustafa 12 months ago
parent
commit
bac04a3b0e
  1. 4
      packages/nc-gui/components/cell/TextArea.vue
  2. 2
      packages/nc-gui/composables/useMultiSelect/index.ts

4
packages/nc-gui/components/cell/TextArea.vue

@ -296,8 +296,10 @@ watch(editEnabled, () => {
textarea:focus {
box-shadow: none;
}
</style>
:deep(.nc-text-area-expand-btn) {
<style lang="scss">
.cell:hover .nc-text-area-expand-btn {
@apply !block;
}
</style>

2
packages/nc-gui/composables/useMultiSelect/index.ts

@ -752,7 +752,7 @@ export function useMultiSelect(
const clipboardMatrix = parsedClipboard.data as string[][]
const selectionRowCount = clipboardMatrix.length
const selectionRowCount = Math.max(clipboardMatrix.length, selectedRange.end.row - selectedRange.start.row + 1)
const pasteMatrixRows = selectionRowCount
const pasteMatrixCols = clipboardMatrix[0].length

Loading…
Cancel
Save