ui/grid view card: tweak layout

This commit is contained in:
Adorian Doran 2026-02-23 09:19:01 +02:00
parent a4a3d6a82c
commit eaf0c690e1
2 changed files with 4 additions and 8 deletions

View File

@ -120,7 +120,6 @@ async function renderChildrenList($renderedContent: JQuery<HTMLElement>, note: F
return;
}
$renderedContent.css("padding", "10px");
$renderedContent.addClass("text-with-ellipsis");
// just load the first 10 child notes

View File

@ -278,7 +278,7 @@
padding-bottom: .5rem;
word-break: break-all;
flex-shrink: 0;
padding: .5em 1em;
padding: .5rem 1rem;
padding-inline-end: 8px;
border-bottom-color: var(--card-border-color);
@ -377,8 +377,9 @@ body.mobile .note-list.grid-view .note-book-card {
width: 25%;
}
.rendered-content {
padding: 1rem;
.rendered-content,
.rendered-content.text-with-ellipsis {
padding: .5rem 1rem 1rem 1rem;
}
&.type-image .rendered-content,
@ -386,10 +387,6 @@ body.mobile .note-list.grid-view .note-book-card {
padding: 0;
}
.rendered-content.text-with-ellipsis {
padding: 1rem !important;
}
h1, h2, h3, h4, h5, h6 {
font-size: 1rem;
color: var(--active-item-text-color);