Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions apps/desktop/src/renderer/styles/tasks.css
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,94 @@
font-size: 12.5px;
}

/* A changed image in Files changed's list (image-diff.tsx), under its
header in place of lines, as its lead (diff-view/index.ts): its two sides beside each other, each on a
checkerboard that shows what is transparent, or the after laid over the
before, swiped or faded with the slider under them. */
.image-diff {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--luke-space-8);
padding: var(--luke-space-12);
font-family: var(--luke-font-sans);
}

.image-diff-modes {
display: flex;
justify-content: center;
}

.image-diff-sides {
display: flex;
width: 100%;
flex-wrap: wrap;
justify-content: center;
gap: var(--luke-space-12);
}

.image-diff-side {
display: flex;
min-width: 0;
flex: 1 1 200px;
flex-direction: column;
align-items: center;
gap: var(--luke-space-6);
margin: 0;
}

.image-diff-side > figcaption {
color: var(--luke-color-text-muted);
font-size: 11.5px;
}

.image-diff-picture,
.image-diff-stack {
max-width: 100%;
max-height: 480px;
border: 1px solid var(--luke-color-border);
background:
repeating-conic-gradient(var(--luke-color-surface) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
}

.image-diff-picture {
object-fit: contain;
}

.image-diff-stacked {
display: flex;
max-width: 100%;
flex-direction: column;
align-items: center;
gap: var(--luke-space-8);
}

/* The two sides stand in one cell of a grid, as large as the larger, the
after over the before: each fills the cell, scaled to fit, on a
checkerboard of its own, so the after at full strength or swiped all the
way hides the before however their sizes differ. */
.image-diff-stack {
display: grid;
}

.image-diff-stack > .image-diff-picture {
width: 100%;
height: 100%;
grid-area: 1 / 1;
border: 0;
background-color: var(--code-ground);
}
Comment thread
luke-agent[bot] marked this conversation as resolved.

.image-diff-slider {
width: min(320px, 100%);
}

.image-diff-note {
margin: 0;
color: var(--luke-color-text-muted);
font-size: 12.5px;
}

/* The tree's search field and its filter, in one row over the tree. */
.file-tree-search {
display: flex;
Expand Down
Loading
Loading