fix(i18n): dynamic sidebar translations and UI font normalization (#2683)
* fix(i18n): make sidebar menu labels translate dynamically on language change * fix: sync package-lock.json with missing hono dependency * style: normalize small font sizes to 0.875rem across UI components
This commit is contained in:
+4
-4
@@ -62,7 +62,7 @@
|
||||
|
||||
.book-authors {
|
||||
color: var(--p-text-muted-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.375rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -74,11 +74,11 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: var(--p-primary-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
|
||||
i {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
span {
|
||||
@@ -106,7 +106,7 @@
|
||||
}
|
||||
|
||||
.suggestion-authors {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
}
|
||||
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
min-width: 90px;
|
||||
|
||||
.format-checkbox-label {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -550,7 +550,7 @@
|
||||
}
|
||||
|
||||
.chip-label {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
+4
-4
@@ -96,7 +96,7 @@ $provider-colors: (
|
||||
|
||||
i {
|
||||
color: var(--primary-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -496,7 +496,7 @@ $provider-colors: (
|
||||
background: var(--p-surface-900);
|
||||
color: var(--primary-color);
|
||||
border-radius: 2rem;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
@@ -517,7 +517,7 @@ $provider-colors: (
|
||||
|
||||
i {
|
||||
color: var(--primary-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -672,7 +672,7 @@ $provider-colors: (
|
||||
|
||||
i {
|
||||
color: var(--primary-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.45;
|
||||
|
||||
strong {
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
background: color-mix(in srgb, var(--p-primary-color) 5%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--p-primary-color) 20%, transparent);
|
||||
border-radius: 6px;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
max-width: 500px;
|
||||
|
||||
@@ -299,7 +299,7 @@
|
||||
|
||||
.preview-paragraph-small {
|
||||
color: var(--p-text-color);
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
text-align: justify;
|
||||
@@ -353,7 +353,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
font-weight: 500;
|
||||
|
||||
@@ -364,7 +364,7 @@
|
||||
}
|
||||
|
||||
.meta-value {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-color);
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
|
||||
+1
-1
@@ -227,7 +227,7 @@
|
||||
}
|
||||
|
||||
.file-meta {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-secondary-color);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -160,7 +160,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
margin-top: 0.5rem;
|
||||
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@
|
||||
}
|
||||
|
||||
.action-description {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
}
|
||||
|
||||
.toggle-status {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--p-text-muted-color);
|
||||
|
||||
@@ -356,7 +356,7 @@
|
||||
color: var(--p-text-muted-color);
|
||||
|
||||
.pi {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -431,7 +431,7 @@
|
||||
align-items: flex-start;
|
||||
gap: 0.375rem;
|
||||
color: var(--p-text-muted-color);
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.4;
|
||||
margin-top: 0.25rem;
|
||||
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
min-width: 4.5rem;
|
||||
|
||||
|
||||
+2
-2
@@ -293,7 +293,7 @@
|
||||
}
|
||||
|
||||
.option-hint {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
flex: 1;
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
}
|
||||
|
||||
.cron-empty {
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--p-text-muted-color);
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
color: #ef4444;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
margin-top: -0.25rem;
|
||||
|
||||
i {
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
color: #ef4444;
|
||||
font-size: 0.8125rem;
|
||||
font-size: 0.875rem;
|
||||
margin-top: -0.25rem;
|
||||
|
||||
i {
|
||||
|
||||
Reference in New Issue
Block a user