Skip to content

Commit bd7421d

Browse files
committed
chore: cleanup
1 parent 37e3203 commit bd7421d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app/assets/css/main.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
--color-green-950: #052e16;
1818
}
1919

20-
html {
21-
scroll-behavior: smooth;
20+
@media (prefers-reduced-motion: no-preference) {
21+
html {
22+
scroll-behavior: smooth;
23+
}
2224
}

app/stores/translation.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,13 @@ export const useTranslationStore = defineStore("translation", {
105105
if (headings[tip.heading]) {
106106
headings[tip.heading]!.push({
107107
index,
108-
translation:
109-
state.tips.translations?.[index]?.heading || "<LEGE VERTALING>",
108+
translation: state.tips.translations[index].heading,
110109
});
111110
} else {
112111
headings[tip.heading] = [
113112
{
114113
index,
115-
translation:
116-
state.tips.translations?.[index]?.heading || "<LEGE VERTALING>",
114+
translation: state.tips.translations[index].heading,
117115
},
118116
];
119117
}
@@ -142,7 +140,10 @@ export const useTranslationStore = defineStore("translation", {
142140
return (
143141
state.outlines.originals?.filter(
144142
(o) =>
145-
!state.outlines.translations?.some((t) => t.number === o.number),
143+
!!o.title &&
144+
!state.outlines.translations?.some(
145+
(t) => t.number === o.number && !!t.title && !!t.updated,
146+
),
146147
) ?? []
147148
);
148149
},

0 commit comments

Comments
 (0)