🔧 Replace window with globalThis for determining innerWidth
This commit is contained in:
@@ -387,7 +387,7 @@ const hasFiles = computed(() => status.value.totalFiles > 0);
|
||||
const fileTooLarge = computed(() => fileLines.value.length > 10000);
|
||||
const lineHeight = computed(() => {
|
||||
// Mobile-first: 24px on mobile, 20px on desktop
|
||||
return window.innerWidth < 768 ? 24 : 20;
|
||||
return globalThis.innerWidth < 768 ? 24 : 20;
|
||||
});
|
||||
const highlightConfig = computed(() => ({
|
||||
theme: preferences.value.darkMode ? 'github-dark' : 'github',
|
||||
|
||||
Reference in New Issue
Block a user