θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Update light mode designs for system prompt history #3818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
--theme-sidebar-subitem-default: rgba(255, 255, 255, 0.05);
--theme-sidebar-subitem-selected: rgba(255, 255, 255, 0.05);
--theme-sidebar-thread-selected: rgba(255, 255, 255, 0.05);
--theme-popup-menu-bg: #000000;

--theme-sidebar-subitem-hover: rgba(255, 255, 255, 0.05);
--theme-sidebar-border: rgba(255, 255, 255, 0.1);
Expand Down Expand Up @@ -88,11 +89,11 @@

[data-theme="light"] {
--theme-loader: #000000;

--theme-bg-primary: #ffffff;
--theme-bg-secondary: #ffffff;
--theme-bg-sidebar: #edf2fa;
--theme-bg-container: #f9fbfd;
--theme-popup-menu-bg: #c2e7fe;

--theme-bg-chat: #ffffff;
--theme-bg-chat-input: #eaeaea;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function PromptHistoryItem({
<span className="mx-1 text-white">β€’</span>
</>
)}
<span className="text-theme-home-text-secondary">
<span className="text-white opacity-50 light:opacity-100">
{moment(modifiedAt).fromNow()}
</span>
</div>
Expand All @@ -82,11 +82,11 @@ export default function PromptHistoryItem({
{showMenu && (
<div
ref={menuRef}
className="absolute right-0 top-6 bg-black light:bg-white rounded-lg z-50"
className="absolute right-0 top-6 bg-theme-bg-popup-menu rounded-lg z-50"
>
<button
type="button"
className="px-[10px] py-[6px] text-theme-text-secondary hover:bg-theme-hover cursor-pointer border-none"
className="px-[10px] py-[6px] text-sm text-white hover:bg-theme-hover cursor-pointer border-none"
onClick={() => {
setShowMenu(false);
deleteHistory(id);
Expand Down
1 change: 1 addition & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default {
container: 'var(--theme-bg-container)',
chat: 'var(--theme-bg-chat)',
"chat-input": 'var(--theme-bg-chat-input)',
"popup-menu": 'var(--theme-popup-menu-bg)',
},
text: {
primary: 'var(--theme-text-primary)',
Expand Down