This commit is contained in:
Andrew Kingston 2023-04-17 16:22:59 +01:00
parent 666762a2c2
commit c614c0739f
9 changed files with 8 additions and 32 deletions

View File

@ -2,7 +2,6 @@
import { getContext, onMount } from "svelte"
import { Modal } from "@budibase/bbui"
import CreateEditColumn from "../CreateEditColumn.svelte"
import { tables } from "stores/backend"
const { rows, subscribe } = getContext("sheet")

View File

@ -325,9 +325,4 @@
text-overflow: ellipsis;
white-space: nowrap;
}
footer {
display: flex;
justify-content: center;
}
</style>

View File

@ -15,12 +15,12 @@
}
const goToBuilder = () => {
// if (app.lockedOther) {
// notifications.error(
// `App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.`
// )
// return
// }
if (app.lockedOther) {
notifications.error(
`App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.`
)
return
}
$goto(`../../app/${app.devId}`)
}

View File

@ -104,7 +104,6 @@
}
onMount(async () => {
return
if (!hasSynced && application) {
try {
await API.syncApp(application)

View File

@ -80,16 +80,6 @@
open = false
}
const moveStart = () => {
reorder.actions.moveColumnToStart(column.name)
open = false
}
const moveEnd = () => {
reorder.actions.moveColumnToEnd(column.name)
open = false
}
const makeDisplayColumn = () => {
columns.actions.changePrimaryDisplay(column.name)
open = false

View File

@ -64,9 +64,6 @@
align-items: flex-start;
overflow: hidden;
}
.text-cell.editable:hover {
cursor: text;
}
.text-cell.number {
justify-content: flex-end;
}

View File

@ -183,9 +183,6 @@
width: 100%;
transition: margin-bottom 130ms ease-out;
}
.new-row.visible {
margin-bottom: 0;
}
.new-row :global(.cell) {
--cell-background: var(--background) !important;
border-bottom: none;

View File

@ -29,7 +29,7 @@
on:mouseenter={() => ($hoveredRowId = row._id)}
on:mouseleave={() => ($hoveredRowId = null)}
>
{#each $renderedColumns as column, idx (column.name)}
{#each $renderedColumns as column, columnIdx (column.name)}
{@const cellId = `${row._id}-${column.name}`}
<DataCell
{cellId}
@ -37,7 +37,7 @@
{row}
{invertY}
{rowFocused}
invertX={idx >= $columnHorizontalInversionIndex}
invertX={columnIdx >= $columnHorizontalInversionIndex}
highlighted={rowHovered || rowFocused || reorderSource === column.name}
selected={rowSelected}
rowIdx={idx}

View File

@ -5,7 +5,6 @@
const {
scroll,
rowHeight,
contentHeight,
maxScrollTop,
contentWidth,