Skip to content

Build your personal knowledge base with Trilium Notes

client/icon pack/preview: disable the scroll padding widget for icon packs

Adorian Doranb86c9c6b5c2c
diff --git a/apps/client/src/widgets/scroll_padding.tsx b/apps/client/src/widgets/scroll_padding.tsx
index 57d7349d05..4cf83020af 100644
--- a/apps/client/src/widgets/scroll_padding.tsx
+++ b/apps/client/src/widgets/scroll_padding.tsx
@@ -10,7 +10,8 @@ export default function ScrollPadding() {
&& viewScope?.viewMode === "default"
&& note?.isContentAvailable()
&& !note?.isTriliumSqlite()
- && !note?.isMarkdown();
+ && !note?.isMarkdown()
+ && !note?.isIconPack();
const refreshHeight = () => {
if (!ref.current) return;