Drag database records by touch and format record notes on the phone
CI / go (Server) (push) Failing after 4m16s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
CI / go (Web-App) (push) Successful in 10m49s
CI / frontend (push) Failing after 7m26s
CI / desktop (ubuntu-latest) (push) Successful in 1h43m36s
CI / mobile (push) Failing after 3m46s
CI / docker (push) Successful in 58m32s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / go (Server) (push) Failing after 4m16s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
CI / go (Web-App) (push) Successful in 10m49s
CI / frontend (push) Failing after 7m26s
CI / desktop (ubuntu-latest) (push) Successful in 1h43m36s
CI / mobile (push) Failing after 3m46s
CI / docker (push) Successful in 58m32s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
- Touch dragging (database/touchdrag.ts): rows drag by their grip, board cards by a grip shown on touch screens, calendar entries by themselves. The handle takes the touch from its start, since Android's long press cancels a held touch; a tap still clicks and holding still is the long press. The phone's editor WebView claims touches at once. - Editor bridge: toolbar commands and state follow focus into an editor inside a panel (a record's notes) and back to the page. - Phone-App widget tests: fixtures gain the fields the API added since (journal, tags, properties, journalDate, createdBy, lastEditedBy). - Guide: how to drag records on a phone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
406779b353
commit
aede10bd1a
11 files changed
+551
-55
No files matched your search
@@ -1772,6 +1772,60 @@
|
||||
.dw-db-k__card.is-dragging {
|
||||
opacity: 0.4;
|
||||
}
|
||||
/* Dragging with a finger (touchdrag.ts): from a handle, with a copy following the finger. */
|
||||
.dw-db-touch-handle {
|
||||
touch-action: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-touch-callout: none;
|
||||
}
|
||||
.dw-db-k__card {
|
||||
position: relative;
|
||||
}
|
||||
.dw-db-k__grip {
|
||||
display: none;
|
||||
}
|
||||
@media (hover: none) {
|
||||
/* No hover to reveal the grips: always shown, big enough for a finger. */
|
||||
.dw-db-t__grip {
|
||||
opacity: 1;
|
||||
padding: 8px 4px;
|
||||
}
|
||||
.dw-db-k__grip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
color: var(--color-ink-faint);
|
||||
}
|
||||
.dw-db-k__card {
|
||||
padding-right: 36px;
|
||||
}
|
||||
}
|
||||
.dw-db-t tr.is-held td,
|
||||
.dw-db-k__card.is-held,
|
||||
.dw-db-c__chip.is-held {
|
||||
background: var(--color-accent-soft);
|
||||
}
|
||||
.dw-db-t tr.is-dragging td,
|
||||
.dw-db-c__chip.is-dragging {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.dw-db-ghost {
|
||||
box-shadow: var(--shadow-menu, 0 8px 24px rgba(0, 0, 0, 0.2));
|
||||
opacity: 0.95;
|
||||
}
|
||||
.dw-db-ghost--row {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--color-line-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--color-surface-raised);
|
||||
color: var(--color-ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.dw-db-k__prop .dw-db-cell__number {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user