1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00

style(instances): the XML tab's editor is taller and its review marks the changed lines

The VM's XML editor takes most of the window's height and is framed like
a form field. The review dialog shows removed and added lines on a red and
green tint, and each part of the diff starts with its line number instead
of the unified diff's @@ header.
This commit is contained in:
catborise 2026-11-04 14:17:45 +03:00
parent 9cda2f4e1b
commit ab2192ef5f
7 changed files with 243 additions and 211 deletions

View file

@ -52,6 +52,27 @@
height: 350px;
}
/* the VM's XML editor: as tall as most of the window, framed like a form field */
.xml-editor .ace_editor {
height: max(350px, 65vh);
border: var(--bs-border-width) solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
}
/* the review dialog's diff: added and removed lines on a tint, a hunk starts with its line number */
.xml-diff > div {
padding: 0 .5rem;
}
.xml-diff .diff-add {
background-color: rgba(var(--bs-success-rgb), .12);
}
.xml-diff .diff-del {
background-color: rgba(var(--bs-danger-rgb), .12);
}
.xml-diff .diff-hunk:not(:first-child) {
margin-top: .75rem;
}
/* headers of sortable tables (static/js/sort_tables.js): the sorted one shows
its direction, up for ascending */
th[role=columnheader]:not([data-sort-method="none"]) {