misc: add option to span whole screen

This commit is contained in:
Xyphyn committed 2023-07-30 14:56:35 -07:00
1 parent 45296b60d2
commit cfbf0570d3
5 files changed
+18 -4

No files matched your search

+3 -1
View File
@@ -12,6 +12,7 @@ interface Settings {
sort: 'Hot' | 'TopAll' | 'Active' | 'New'
feed: 'All' | 'Subscribed' | 'Local'
}
fullWidthLayout: boolean
}
const defaultSettings: Settings = {
@@ -25,6 +26,7 @@ const defaultSettings: Settings = {
sort: 'Active',
feed: 'Local',
},
fullWidthLayout: false,
}
export const userSettings = writable(defaultSettings)
@@ -34,7 +36,7 @@ if (typeof window != 'undefined') {
localStorage.getItem('settings') ?? JSON.stringify(defaultSettings)
)
userSettings.set({...defaultSettings, ...oldUserSettings})
userSettings.set({ ...defaultSettings, ...oldUserSettings })
}
userSettings.subscribe((settings) => {