feat(ui): scroll past the end of the YAML editor and history diff, with an appearance setting

This commit is contained in:
sam committed 2026-10-19 09:34:32 +11:00
1 parent 6630b0c9bf
commit b47f768076
7 files changed
+144 -106

No files matched your search

+1 -1
View File
@@ -544,7 +544,7 @@ function syncScroll(event: Event): void {
name="workflow-yaml"
required
:readonly="archieWorking"
class="relative min-h-96 resize-y max-md:h-full max-md:min-h-0 max-md:resize-none rounded-none border-0 bg-transparent py-3 pr-3 pl-14 text-[13px] leading-6 text-transparent caret-foreground shadow-none md:text-[13px] focus-visible:ring-0"
class="relative min-h-96 resize-y max-md:h-full max-md:min-h-0 max-md:resize-none rounded-none border-0 bg-transparent pt-3 pr-3 pb-[calc(0.75rem+var(--code-overscroll))] pl-14 text-[13px] leading-6 text-transparent caret-foreground shadow-none md:text-[13px] focus-visible:ring-0"
spellcheck="false"
wrap="off"
@scroll="syncScroll"
+1 -1
View File
@@ -69,7 +69,7 @@ const CHANGE_VARIANTS = { added: "default", edited: "secondary", removed: "destr
<RotateCcw data-icon="inline-start" /> Restore this version</Button>
</div>
<p v-if="then === null" class="rounded-lg border border-border p-4 text-sm text-fg-muted">Workflow removed in this revision.</p>
<pre v-else-if="mode === 'yaml'" class="min-h-0 flex-1 overflow-auto rounded-lg border border-border py-2 font-mono text-[13px] leading-6"><code><span
<pre v-else-if="mode === 'yaml'" class="min-h-0 flex-1 overflow-auto rounded-lg border border-border pt-2 pb-[calc(0.5rem+var(--code-overscroll))] font-mono text-[13px] leading-6"><code><span
v-for="(line, i) in diff"
:key="i"
class="block min-h-6 px-3 whitespace-pre-wrap"