mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 16:43:36 +01:00
ui/grid view card: restyle the button bar
This commit is contained in:
parent
f84a4c4856
commit
a4a3d6a82c
@ -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>');
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user