Skip to content

Commit df68e0f

Browse files
style: fix i18n lunaria style (#1737)
1 parent afa406f commit df68e0f

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

lunaria/components.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ export const StatusByFile = (
221221
<h2 id="by-file">
222222
<a href="#by-file">Translation status by file</a>
223223
</h2>
224-
<table class="status-by-file">
225-
<thead>
226-
<tr>
227-
${['File', ...locales.map(({ lang }) => lang)].map(col => html`<th>${col}</th>`)}
228-
</tr>
229-
</thead>
230-
${TableBody(status, locales, lunaria)}
231-
</table>
224+
<div class="status-by-file-wrapper">
225+
<table class="status-by-file">
226+
<thead>
227+
<tr>
228+
${['File', ...locales.map(({ lang }) => lang)].map(col => html`<th>${col}</th>`)}
229+
</tr>
230+
</thead>
231+
${TableBody(status, locales, lunaria)}
232+
</table>
233+
</div>
232234
<sup class="capitalize">❌ missing &nbsp; 🔄 outdated &nbsp; ✔ done </sup>
233235
`
234236
}

lunaria/styles.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const BaseStyles = html`
2929
--ln-color-link: var(--ln-color-blue);
3030
--ln-color-done: var(--ln-color-purple);
3131
--ln-color-outdated: var(--ln-color-orange);
32-
--ln-color-missing: var(--ln-color-black);
32+
--ln-color-missing: #ef4444;
3333
--ln-color-table-border: var(--ln-color-gray-3);
3434
--ln-color-table-background: var(--ln-color-gray-1);
3535
}
@@ -175,12 +175,17 @@ export const BaseStyles = html`
175175
font-size: 0.75rem;
176176
}
177177
178-
.status-by-file {
178+
.status-by-file-wrapper {
179+
overflow-x: auto;
179180
margin-bottom: 1rem;
180-
border-collapse: collapse;
181181
border: 1px solid var(--ln-color-table-border);
182+
border-radius: 0.375rem;
183+
scrollbar-color: var(--ln-color-gray-6) var(--ln-color-gray-2);
184+
}
185+
186+
.status-by-file {
187+
border-collapse: collapse;
182188
font-size: 0.8125rem;
183-
column-gap: 64px;
184189
}
185190
186191
.status-by-file tr:first-of-type td {
@@ -296,9 +301,9 @@ export const CustomStyles = html`
296301
--ln-color-link: #539bf5;
297302
--ln-color-table-background: var(--bg-subtle);
298303
--ln-color-table-border: var(--border);
299-
--ln-color-background: var(--theme-bg-gradient);
300-
--ln-color-black: var(--theme-text);
301-
--ln-color-missing: var(--ln-color-black);
304+
--ln-color-background: var(--bg);
305+
--ln-color-black: var(--fg);
306+
--ln-color-missing: #f87171;
302307
--ln-color-outdated: #fb923c;
303308
--ln-color-done: #c084fc;
304309
}
@@ -307,6 +312,10 @@ export const CustomStyles = html`
307312
background-color: var(--bg);
308313
}
309314
315+
body {
316+
color: var(--fg);
317+
}
318+
310319
h1,
311320
h2,
312321
h3,

0 commit comments

Comments
 (0)