ui/grid view card: restyle the button bar

This commit is contained in:
Adorian Doran 2026-02-23 09:08:54 +02:00
parent f84a4c4856
commit a4a3d6a82c
2 changed files with 36 additions and 7 deletions

View File

@ -189,7 +189,7 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
throw new Error(`Can't recognize entity type of '${entity}'`);
}
const $content = $('<div style="display: flex; flex-direction: column; height: 100%;">');
const $content = $('<div style="display: flex; flex-direction: column; height: 100%; justify-content: end;">');
if (type === "pdf") {
const $pdfPreview = $('<iframe class="pdf-preview" style="width: 100%; flex-grow: 100;"></iframe>');

View File

@ -290,13 +290,42 @@
}
}
&.type-image .note-book-content img,
&.type-text .note-book-content img,
&.type-canvas .note-book-content img {
max-width: 100%;
max-height: 100%;
}
& .note-book-content {
&.type-image .note-book-content img,
&.type-text .note-book-content img,
&.type-canvas .note-book-content img {
max-width: 100%;
max-height: 100%;
}
.rendered-content {
height: 100%;
}
.rendered-content:has(.file-footer) {
padding: 0;
}
.file-footer {
display: flex;
gap: 8px;
justify-content: space-between;
padding: 0;
.btn.btn-primary {
flex: 1;
margin: 0;
box-shadow: unset;
background: transparent;
border-radius: 0;
padding: 8px;
&:hover {
background: var(--more-accented-background-color);
}
}
}
}
}
.note-list.grid-view .note-list-container {