Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(menu): point a right-to-left submenu's arrows the way it opens
Elian Doranc02af84de13e
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.cssindex bd66f161ba..9183a203d0 100644--- a/apps/client/src/stylesheets/theme-next/base.css+++ b/apps/client/src/stylesheets/theme-next/base.css@@ -364,10 +364,15 @@ body.desktop .dropdown-submenu.dropstart .dropdown-toggle::before {color: var(--menu-item-arrow-color) !important;}-body[dir=rtl] .dropdown-menu:not([data-popper-placement="bottom-start"]) .dropdown-toggle::after {+/* Right to left, the end side is the left, so both arrows point the other way. */+body.desktop[dir=rtl] .dropdown-submenu:not(.dropstart) .dropdown-toggle::after {content: "\ea4d" !important;}+body.desktop[dir=rtl] .dropdown-submenu.dropstart .dropdown-toggle::before {+ content: "\ed3b" !important;+}+/* Menu item group heading *//* The heading body */diff --git a/apps/client/src/widgets/react/IconPicker.css b/apps/client/src/widgets/react/IconPicker.cssindex 432206c87d..553c3ffdb6 100644--- a/apps/client/src/widgets/react/IconPicker.css+++ b/apps/client/src/widgets/react/IconPicker.css@@ -16,10 +16,9 @@}/*- * Tall enough to pick from, and never taller than the screen. The menu is placed by Popper, which- * keeps it in view by moving it, and can only do that while it is smaller than the view; a grid of- * a fixed height hung off a button near an edge is what runs past one. The subtraction leaves room- * for the search row above the grid, the menu's own padding, and the button it hangs from.+ * Tall enough to pick from, and never taller than the screen. Floating UI keeps the panel in view by+ * shifting it, which works only while the panel is smaller than the viewport. The subtraction+ * leaves room for the search row above the grid, the panel's padding, and the toggle.*/.icon-picker .icon-list {height: clamp(12rem, 100vh - 8rem, 500px);diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.cssindex e6ed05df72..481b3dc648 100644--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatInputBar.css@@ -302,11 +302,6 @@color: var(--muted-text-color);}-.llm-chat-model-dropdown .dropdown-menu {- max-height: 80vh;- overflow: auto;-}-/** The model picker stays the theme's own combo box (`.select-button.dropdown-toggle.btn`* — its fill, its 6px radius, its caret, its focus outline), so it reads as the same