2 Commits
Author SHA1 Message Date
Peyman Honarjoo 4db40bfc64 style(settings): update dark mode styles and improve component usability
- Replace direct attribute selectors with :host-context for better encapsulation
- Add pointer cursor to tab buttons
- Update background colors for settings cards and content in dark mode
2026-10-07 23:03:03 +03:30
Peyman Honarjoo dd0a661919 refactor(ui): optimize layout responsiveness and component positioning
- Switch to dynamic viewport height (dvh) for better mobile support
- Implement fixed positioning for chat input using :host-context
- Simplify home page layout logic and remove redundant padding
- Disable Angular CLI analytics in configuration
2026-10-07 23:02:57 +03:30
4 changed files with 30 additions and 17 deletions
+3
View File
@@ -93,5 +93,8 @@
} }
} }
} }
},
"cli": {
"analytics": false
} }
} }
+2 -6
View File
@@ -3,7 +3,8 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
min-height: 100vh; min-height: 100dvh;
box-sizing: border-box;
padding: 2rem 1rem; padding: 2rem 1rem;
transition: padding 0.4s ease; transition: padding 0.4s ease;
position: relative; position: relative;
@@ -31,7 +32,6 @@
.home-page.has-messages { .home-page.has-messages {
justify-content: flex-end; justify-content: flex-end;
padding-bottom: 2rem;
background: var(--app-bg); background: var(--app-bg);
} }
@@ -146,10 +146,6 @@
padding: 1.25rem 0.75rem; padding: 1.25rem 0.75rem;
} }
.home-page.has-messages {
padding-bottom: 1.25rem;
}
.home-header { .home-header {
top: 1.25rem; top: 1.25rem;
} }
+17 -11
View File
@@ -27,6 +27,7 @@
.tab-btn { .tab-btn {
position: relative; position: relative;
cursor: pointer;
} }
.tab-btn.tab-active { .tab-btn.tab-active {
@@ -359,31 +360,36 @@
} }
} }
[data-bs-theme="dark"] .dropzone-icon-wrapper svg, :host-context([data-bs-theme="dark"]) .dropzone-icon-wrapper svg,
[data-bs-theme="dark"] .file-icon-wrapper svg, :host-context([data-bs-theme="dark"]) .file-icon-wrapper svg,
[data-bs-theme="dark"] .section-header svg { :host-context([data-bs-theme="dark"]) .section-header svg {
stroke: var(--color-primary); stroke: var(--color-primary);
} }
[data-bs-theme="dark"] .form-select { :host-context([data-bs-theme="dark"]) .form-select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
} }
[data-bs-theme="dark"] .file-remove-btn:hover { :host-context([data-bs-theme="dark"]) .file-remove-btn:hover {
background-color: rgba(239, 68, 68, 0.15); background-color: rgba(239, 68, 68, 0.15);
} }
[data-bs-theme="dark"] .toggle-switch input:checked + .toggle-slider { :host-context([data-bs-theme="dark"]) .toggle-switch input:checked + .toggle-slider {
box-shadow: 0 1px 3px var(--color-primary)/40, 0 0 0 2px var(--color-primary)/30; box-shadow: 0 1px 3px var(--color-primary)/40, 0 0 0 2px var(--color-primary)/30;
} }
[data-bs-theme="dark"] .settings-card, :host-context([data-bs-theme="dark"]) .settings-card,
[data-bs-theme="dark"] .file-item, :host-context([data-bs-theme="dark"]) .file-item,
[data-bs-theme="dark"] .setting-item { :host-context([data-bs-theme="dark"]) .setting-item {
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
background-color: #111111;
} }
[data-bs-theme="dark"] .file-item:hover, :host-context([data-bs-theme="dark"]) .settings-content {
[data-bs-theme="dark"] .setting-item:hover { background-color: #171717;
}
:host-context([data-bs-theme="dark"]) .file-item:hover,
:host-context([data-bs-theme="dark"]) .setting-item:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
} }
@@ -2,6 +2,14 @@
display: block; display: block;
} }
:host-context(.has-messages) {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 10;
}
.ai-chat-input-wrapper { .ai-chat-input-wrapper {
width: 100%; width: 100%;
max-width: 800px; max-width: 800px;