Skip to content

Build your personal knowledge base with Trilium Notes

fix(presentation): frame the slide preview with a shadow, not gray bars

Elian Doran723167e4af79
diff --git a/apps/client/src/widgets/collections/presentation/index.css b/apps/client/src/widgets/collections/presentation/index.css
index 3b89e3e545..919f18db6f 100644
--- a/apps/client/src/widgets/collections/presentation/index.css
+++ b/apps/client/src/widgets/collections/presentation/index.css
@@ -10,10 +10,11 @@
align-items: center;
justify-content: center;
min-height: 0;
+ padding: 1em;
container-type: size;
- background-color: var(--accented-background-color);
&:fullscreen {
+ padding: 0;
background-color: black;
}
}
diff --git a/apps/client/src/widgets/collections/presentation/slidejs.css b/apps/client/src/widgets/collections/presentation/slidejs.css
index d4063fbe0e..c4b517f89e 100644
--- a/apps/client/src/widgets/collections/presentation/slidejs.css
+++ b/apps/client/src/widgets/collections/presentation/slidejs.css
@@ -3,6 +3,11 @@
width: min(100cqw, 100cqh * 16 / 9);
height: auto;
aspect-ratio: 16 / 9;
+ box-shadow: 0 2px 12px var(--tool-dialog-shadow-color);
+}
+
+:host(:fullscreen) .reveal {
+ box-shadow: none;
}
figure img {