Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/include notes: fix some issues

Adorian Doran99945605e5ad
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 7552fdbfa8..b62022b96c 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -1561,7 +1561,8 @@ body.mobile .modal-content-with-sidebar > .modal-main > .modal-header > .modal-t
}
.include-note-content:not(:fullscreen) :is(
- .rendered-content > img, .rendered-content > svg, .video-preview
+ .rendered-content > img, .rendered-content > svg,
+ .video-preview-wrapper:not(:fullscreen) > .video-preview
) {
max-height: var(--include-note-media-max-height, none);
}
@@ -1700,6 +1701,11 @@ body.mobile .modal-content-with-sidebar > .modal-main > .modal-header > .modal-t
margin-bottom: 0;
}
+/* Hides what a larger box size drew, until the Tiny row replaces it. */
+.include-note[data-box-size="tiny"] > .include-note-wrapper > .include-note-content {
+ display: none;
+}
+
.include-note[data-hide-title="true"]:not([data-box-size="tiny"], [data-box-size="expandable"]) {
> .include-note-wrapper > .include-note-title-row {
display: none;
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 900610eb51..1671545279 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -728,7 +728,7 @@ html .note-detail-editable-text > :not(figure, .include-note, hr):first-child {
}
/* Round the player, not the card: clipping the card would crop the insert-paragraph buttons. */
-.include-note-content.type-video .video-preview-wrapper {
+.include-note-content.type-video .video-preview-wrapper:not(:fullscreen) {
border-radius: 0 0 var(--_include-note-bottom-border-radius, 8px)
var(--_include-note-bottom-border-radius, 8px);
overflow: hidden;