Skip to content

Build your personal knowledge base with Trilium Notes

fix(icon_picker): stop clipping the last row of a short result list

Elian Doran755651090f98
diff --git a/apps/client/src/widgets/react/IconPicker.css b/apps/client/src/widgets/react/IconPicker.css
index 192649909c..fef4e7dbd8 100644
--- a/apps/client/src/widgets/react/IconPicker.css
+++ b/apps/client/src/widgets/react/IconPicker.css
@@ -28,6 +28,11 @@
overflow: auto;
}
+/* The grid is as tall as its rows, so it grows by the `top` offset the cells take. */
+.icon-picker .icon-list > [role="grid"] {
+ padding-bottom: var(--scroll-fade-top);
+}
+
.icon-picker .icon-list span {
display: inline-block;
padding: 10px;