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
chore(llm): styling of history menu
Elian Doran0fc62dda7807
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.cssindex 5a462b9804..8dde2d580c 100644--- a/apps/client/src/stylesheets/style.css+++ b/apps/client/src/stylesheets/style.css@@ -1750,10 +1750,13 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {justify-content: space-between;align-items: baseline;font-weight: bold;- text-transform: uppercase;color: var(--muted-text-color) !important;}+#right-pane .card-header-title {+ text-transform: uppercase;+}+#right-pane .card-header-buttons {display: flex;transform: scale(0.9);diff --git a/apps/client/src/widgets/sidebar/SidebarChat.css b/apps/client/src/widgets/sidebar/SidebarChat.cssindex 6ea66bf1c9..a2506ee409 100644--- a/apps/client/src/widgets/sidebar/SidebarChat.css+++ b/apps/client/src/widgets/sidebar/SidebarChat.css@@ -90,14 +90,6 @@font-size: 0.85em;}-/* History dropdown */-.sidebar-chat-history-empty {- padding: 0.75rem 1rem;- text-align: center;- color: var(--muted-text-color);- font-size: 0.9rem;-}-.sidebar-chat-history-item-content {display: flex;flex-direction: column;diff --git a/apps/client/src/widgets/sidebar/SidebarChat.tsx b/apps/client/src/widgets/sidebar/SidebarChat.tsxindex c83ba94447..6a52673e22 100644--- a/apps/client/src/widgets/sidebar/SidebarChat.tsx+++ b/apps/client/src/widgets/sidebar/SidebarChat.tsx@@ -1,3 +1,5 @@+import "./SidebarChat.css";+import type { Dropdown as BootstrapDropdown } from "bootstrap";import { useCallback, useEffect, useRef, useState } from "preact/hooks";@@ -14,7 +16,6 @@ import ChatMessage from "../type_widgets/llm_chat/ChatMessage.js";import type { LlmChatContent } from "../type_widgets/llm_chat/llm_chat_types.js";import { useLlmChat } from "../type_widgets/llm_chat/useLlmChat.js";import RightPanelWidget from "./RightPanelWidget.js";-import "./SidebarChat.css";/*** Sidebar chat widget that appears in the right panel.@@ -225,9 +226,9 @@ export default function SidebarChat() {onShown={loadRecentChats}>{recentChats.length === 0 ? (- <li className="sidebar-chat-history-empty">+ <FormListItem disabled>{t("sidebar_chat.no_chats")}- </li>+ </FormListItem>) : (recentChats.map(chatItem => (<FormListItem