Merge feature/design-review: comprehensive UI/UX improvements

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-03-31 21:03:41 +07:00
commit 9afb1434b6
12 changed files with 225 additions and 137 deletions

2
.env Normal file
View file

@ -0,0 +1,2 @@
GMAIL_CLIENT_ID=233300338756-ttspvadueiju25ijthl5tt0mh9t3f221.apps.googleusercontent.com
GMAIL_CLIENT_SECRET=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

View file

@ -12,10 +12,11 @@ body {
overflow: hidden;
font-family: var(--font-sans);
font-size: 13px;
line-height: 1.4;
line-height: 1.5;
color: var(--text-primary);
background: var(--bg-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
user-select: none;
}
@ -44,7 +45,8 @@ button {
button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
outline-offset: 1px;
border-radius: var(--radius-sm);
}
input,
@ -56,20 +58,22 @@ textarea {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 6px 10px;
padding: 7px 10px;
outline: none;
transition: border-color var(--transition-fast);
}
input:focus,
select:focus,
textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-muted);
}
/* Scrollbar */
/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
width: 8px;
height: 8px;
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
@ -77,15 +81,15 @@ textarea:focus {
}
::-webkit-scrollbar-thumb {
background: var(--bg-hover);
border-radius: 4px;
background: var(--border-light);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-light);
background: var(--text-muted);
}
/* Utility classes */
/* ── Utilities ─────────────────────────────────────────── */
.truncate {
overflow: hidden;
text-overflow: ellipsis;

View file

@ -1,43 +1,58 @@
:root {
--bg-primary: #1e1e1e;
--bg-secondary: #252526;
--bg-tertiary: #2d2d30;
--bg-hover: #3e3e42;
--bg-selected: #37373d;
--bg-input: #3c3c3c;
/* ── Backgrounds ─────────────────────────────────────── */
--bg-primary: #1a1a1c;
--bg-secondary: #222224;
--bg-tertiary: #2a2a2e;
--bg-hover: #36363c;
--bg-selected: #35353b;
--bg-input: #2e2e32;
--bg-elevated: #2c2c30;
--text-primary: #e0e0e0;
--text-secondary: #a0a0a0;
--text-muted: #6e6e6e;
/* ── Text ────────────────────────────────────────────── */
--text-primary: #ececec;
--text-secondary: #a0a0aa;
--text-muted: #60606a;
--accent: #a8e600;
--accent-hover: #c5ff1a;
--accent-muted: rgba(168, 230, 0, 0.15);
--accent-text: #1e1e1e;
/* ── Accent (lime) ───────────────────────────────────── */
--accent: #a8e600;
--accent-hover: #bdff1a;
--accent-muted: rgba(168, 230, 0, 0.10);
--accent-text: #0d1a00;
--border: #3e3e42;
--border-light: #4e4e52;
/* ── Borders ─────────────────────────────────────────── */
--border: #34343a;
--border-light: #46464e;
--danger: #f44747;
--warning: #cca700;
--success: #89d185;
/* ── Semantic ─────────────────────────────────────────── */
--danger: #f44747;
--warning: #e5a000;
--success: #4ade80;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
/* ── Radius ───────────────────────────────────────────── */
--radius-xs: 3px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
/* ── Shadows ──────────────────────────────────────────── */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
--shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.75);
--titlebar-height: 32px;
--statusbar-height: 24px;
--sidebar-width: 48px;
--folderpane-width: 240px;
/* ── Dimensions ───────────────────────────────────────── */
--titlebar-height: 32px;
--statusbar-height: 24px;
--sidebar-width: 52px;
--folderpane-width: 240px;
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
/* ── Typography ───────────────────────────────────────── */
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
--font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
/* ── Motion ───────────────────────────────────────────── */
--transition-fast: 120ms ease;
--transition-normal: 220ms ease;
}

View file

@ -131,7 +131,8 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
.dialog-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
@ -139,26 +140,26 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
}
.dialog {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
width: 480px;
background: var(--bg-elevated);
border: 1px solid var(--border-light);
border-radius: var(--radius-xl);
width: 460px;
max-height: 80vh;
overflow-y: auto;
box-shadow: var(--shadow-lg);
box-shadow: var(--shadow-xl);
}
.dialog-header {
display: flex;
align-items: center;
padding: 16px 20px;
padding: 18px 22px;
border-bottom: 1px solid var(--border);
gap: 12px;
}
.dialog-header h2 {
flex: 1;
font-size: 16px;
font-size: 15px;
font-weight: 600;
}
@ -169,8 +170,9 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
font-size: 16px;
color: var(--text-secondary);
font-size: 18px;
color: var(--text-muted);
line-height: 1;
}
.close-btn:hover {
@ -179,28 +181,32 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
}
.dialog-body {
padding: 20px;
padding: 22px;
}
.error-msg {
padding: 8px 12px;
background: rgba(244, 71, 71, 0.15);
border: 1px solid var(--danger);
border-radius: var(--radius-sm);
padding: 10px 14px;
background: rgba(244, 71, 71, 0.12);
border: 1px solid rgba(244, 71, 71, 0.4);
border-radius: var(--radius-md);
color: var(--danger);
font-size: 12px;
margin-bottom: 16px;
margin-bottom: 18px;
line-height: 1.5;
}
.form-group {
margin-bottom: 14px;
margin-bottom: 16px;
}
.form-group label {
display: block;
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 4px;
font-size: 11px;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 5px;
text-transform: uppercase;
letter-spacing: 0.4px;
}
.form-group input[type="text"],
@ -232,22 +238,27 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
.submit-btn {
width: 100%;
padding: 10px;
padding: 11px;
background: var(--accent);
color: var(--accent-text);
border-radius: var(--radius-md);
font-weight: 600;
font-size: 14px;
margin-top: 8px;
transition: background var(--transition-fast);
font-size: 13px;
margin-top: 6px;
transition: background var(--transition-fast), transform var(--transition-fast);
}
.submit-btn:hover:not(:disabled) {
background: var(--accent-hover);
transform: translateY(-1px);
}
.submit-btn:active:not(:disabled) {
transform: translateY(0);
}
.submit-btn:disabled {
opacity: 0.5;
opacity: 0.4;
cursor: not-allowed;
}

View file

@ -141,13 +141,22 @@ function stopResize(): void {
}
.resize-handle {
width: 4px;
width: 1px;
flex-shrink: 0;
background: var(--border);
cursor: col-resize;
position: relative;
transition: background var(--transition-fast);
}
/* wider invisible grab zone */
.resize-handle::after {
content: '';
position: absolute;
inset: 0 -3px;
cursor: col-resize;
}
.resize-handle:hover,
.resize-handle:active {
background: var(--accent);
@ -172,32 +181,41 @@ function stopResize(): void {
}
.empty-icon {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.5;
font-size: 52px;
margin-bottom: 20px;
opacity: 0.25;
filter: grayscale(1);
}
.empty-content h2 {
font-size: 20px;
font-size: 18px;
font-weight: 600;
margin-bottom: 8px;
color: var(--text-primary);
}
.empty-content p {
color: var(--text-secondary);
margin-bottom: 24px;
color: var(--text-muted);
font-size: 13px;
margin-bottom: 28px;
}
.add-btn {
padding: 10px 24px;
padding: 10px 28px;
background: var(--accent);
color: var(--accent-text);
border-radius: var(--radius-md);
font-weight: 600;
font-size: 14px;
font-size: 13px;
transition: background var(--transition-fast), transform var(--transition-fast);
}
.add-btn:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
.add-btn:active {
transform: translateY(0);
}
</style>

View file

@ -43,11 +43,13 @@ const isConnected = computed(() => {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 12px;
height: var(--statusbar-height);
padding: 0 14px;
background: var(--bg-tertiary);
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--text-muted);
flex-shrink: 0;
}
.connection-status {

View file

@ -324,7 +324,7 @@ onUnmounted(() => {
display: flex;
align-items: flex-start;
width: 100%;
padding: 10px 8px 10px 4px;
padding: 10px 10px 10px 4px;
gap: 6px;
background: var(--bg-secondary);
cursor: pointer;
@ -399,11 +399,11 @@ onUnmounted(() => {
align-items: center;
gap: 8px;
}
.sender { font-size: 13px; flex: 1; min-width: 0; }
.sender { font-size: 13px; flex: 1; min-width: 0; color: var(--text-secondary); }
.font-bold { font-weight: 600; color: var(--text-primary); }
.date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.subject { font-size: 12px; color: var(--text-secondary); }
.snippet { font-size: 11px; color: var(--text-muted); }
.subject { font-size: 12.5px; color: var(--text-secondary); }
.snippet { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.message-indicators {
display: flex; flex-direction: column;

View file

@ -57,57 +57,65 @@ const dateDisplay = computed(() => formatFullDate(props.message.date))
<style scoped>
.message-header {
padding: 16px 20px;
padding: 20px 24px 16px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.subject {
font-size: 18px;
font-size: 17px;
font-weight: 600;
margin-bottom: 12px;
line-height: 1.3;
margin-bottom: 14px;
line-height: 1.4;
color: var(--text-primary);
overflow-wrap: anywhere;
}
.header-details {
display: flex;
flex-direction: column;
gap: 4px;
gap: 5px;
}
.header-row {
display: flex;
gap: 8px;
gap: 10px;
font-size: 12px;
align-items: baseline;
}
.label {
color: var(--text-muted);
min-width: 40px;
min-width: 48px;
flex-shrink: 0;
font-size: 11px;
}
.value {
color: var(--text-secondary);
word-break: break-all;
overflow-wrap: anywhere;
line-height: 1.5;
}
.header-badges {
display: flex;
gap: 8px;
margin-top: 10px;
gap: 6px;
margin-top: 12px;
flex-wrap: wrap;
}
.badge {
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
border-radius: var(--radius-full);
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border);
}
.badge.flagged {
color: var(--warning);
background: rgba(204, 167, 0, 0.15);
background: rgba(229, 160, 0, 0.12);
border-color: rgba(229, 160, 0, 0.3);
}
</style>

View file

@ -55,8 +55,8 @@ function getAccountColor(index: number): string {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px 0;
gap: 4px;
padding: 10px 0;
gap: 2px;
height: 100%;
}
@ -66,12 +66,12 @@ function getAccountColor(index: number): string {
.account-btn {
position: relative;
width: 36px;
height: 36px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
border-radius: var(--radius-sm);
transition: background var(--transition-fast);
}
@ -79,20 +79,21 @@ function getAccountColor(index: number): string {
background: var(--bg-hover);
}
.account-btn.active {
background: var(--bg-selected);
}
.account-avatar {
width: 28px;
height: 28px;
border-radius: var(--radius-sm);
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-size: 12px;
font-weight: 700;
color: #1e1e1e;
color: #0d1a00;
transition: box-shadow var(--transition-fast);
}
.account-btn.active .account-avatar {
box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}
.active-indicator {
@ -101,24 +102,25 @@ function getAccountColor(index: number): string {
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 20px;
height: 18px;
background: var(--accent);
border-radius: 0 2px 2px 0;
border-radius: 0 3px 3px 0;
}
.add-icon {
font-size: 18px;
font-size: 20px;
color: var(--text-muted);
font-weight: 300;
line-height: 1;
}
.settings-icon {
font-size: 16px;
font-size: 15px;
color: var(--text-muted);
}
.add-btn:hover .add-icon,
.settings-btn:hover .settings-icon {
color: var(--text-primary);
color: var(--text-secondary);
}
</style>

View file

@ -38,12 +38,11 @@ const accountsStore = useAccountsStore()
}
.folder-header {
padding: 8px 12px;
padding: 10px 12px 6px;
font-size: 11px;
font-weight: 600;
font-weight: 500;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
letter-spacing: 0.2px;
}
.loading,

View file

@ -76,14 +76,14 @@ function toggleExpand(event: Event): void {
.folder-item {
display: flex;
align-items: center;
width: 100%;
padding: 5px 8px;
width: calc(100% - 8px);
padding: 5px 8px 5px 6px;
gap: 6px;
border-radius: var(--radius-sm);
margin: 0 4px;
width: calc(100% - 8px);
margin: 1px 4px;
transition: background var(--transition-fast);
text-align: left;
position: relative;
}
.folder-item:hover {
@ -91,11 +91,23 @@ function toggleExpand(event: Event): void {
}
.folder-item.active {
background: var(--bg-selected);
background: var(--accent-muted);
}
.folder-item.active::before {
content: '';
position: absolute;
left: -4px;
top: 20%;
height: 60%;
width: 3px;
background: var(--accent);
border-radius: 0 3px 3px 0;
}
.folder-item.active .folder-name {
color: var(--accent);
font-weight: 500;
}
.expand-btn {
@ -131,15 +143,22 @@ function toggleExpand(event: Event): void {
flex: 1;
font-size: 13px;
min-width: 0;
color: var(--text-secondary);
}
.folder-item:hover .folder-name {
color: var(--text-primary);
}
.unread-badge {
font-size: 11px;
font-weight: 600;
font-size: 10px;
font-weight: 700;
color: #fff;
padding: 1px 6px;
border-radius: 10px;
padding: 1px 5px;
border-radius: var(--radius-full);
background: var(--danger);
flex-shrink: 0;
min-width: 18px;
text-align: center;
}
</style>

View file

@ -81,19 +81,19 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
.settings-view {
height: 100vh;
background: var(--bg-primary);
padding: 24px;
padding: 28px 32px;
overflow-y: auto;
}
.settings-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 24px;
gap: 14px;
margin-bottom: 32px;
}
.settings-header h1 {
font-size: 20px;
font-size: 18px;
font-weight: 600;
}
@ -101,26 +101,30 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
padding: 6px 12px;
border-radius: var(--radius-sm);
background: var(--bg-tertiary);
font-size: 12px;
color: var(--text-secondary);
transition: background var(--transition-fast), color var(--transition-fast);
}
.back-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.settings-content {
display: flex;
flex-direction: column;
gap: 32px;
max-width: 520px;
gap: 36px;
max-width: 500px;
}
.settings-content h2 {
font-size: 14px;
font-size: 11px;
font-weight: 600;
margin-bottom: 12px;
color: var(--text-secondary);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
letter-spacing: 0.8px;
}
.section-desc {
@ -134,9 +138,10 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: var(--radius-sm);
padding: 11px 14px;
border-radius: var(--radius-md);
background: var(--bg-secondary);
border: 1px solid var(--border);
margin-bottom: 8px;
}
@ -147,15 +152,18 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none
.account-type {
color: var(--text-muted);
font-size: 11px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.remove-btn {
color: var(--danger);
padding: 4px 8px;
padding: 4px 10px;
border-radius: var(--radius-sm);
font-size: 12px;
transition: background var(--transition-fast);
}
.remove-btn:hover {