move image-related user options + update reminder

This commit is contained in:
end-4
2024-05-25 21:34:47 +07:00
parent 9a5e53dac1
commit 5f76e68a73
3 changed files with 23 additions and 8 deletions
+4 -2
View File
@@ -98,7 +98,9 @@ export const BooruSettings = () => MarginRevealer({
name: 'Lewds',
desc: `Shows naughty stuff when enabled.\nYa like those? Add this to user_options.js:
'sidebar': {
'imageAllowNsfw': true,
'image': {
'allowNsfw': true,
}
},`,
initValue: BooruService.nsfw,
onChange: (self, newValue) => {
@@ -312,7 +314,7 @@ const BooruPage = (taglist, serviceName = 'Booru') => {
downloadState.shown = 'error';
return;
}
const imageColumns = userOptions.sidebar.imageColumns;
const imageColumns = userOptions.sidebar.image.columns;
const imageRows = data.length / imageColumns;
// Init cols