sidebar: fix booru and waifu image action buttons

This commit is contained in:
end-4
2024-08-09 11:15:40 +07:00
parent 8e3e0acc25
commit d453a85185
2 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -290,8 +290,9 @@ const BooruPage = (taglist, serviceName = 'Booru') => {
] ]
}); });
const pageImages = Box({ const pageImages = Box({
hpack: 'start',
homogeneous: true, homogeneous: true,
className: 'sidebar-booru-imagegrid margin-top-5', className: 'sidebar-booru-imagegrid',
}) })
const pageImageRevealer = Revealer({ const pageImageRevealer = Revealer({
transition: 'slide_down', transition: 'slide_down',
+10 -7
View File
@@ -186,13 +186,16 @@ const WaifuImage = (taglist) => {
transition: 'slide_down', transition: 'slide_down',
transitionDuration: userOptions.animations.durationLarge, transitionDuration: userOptions.animations.durationLarge,
revealChild: false, revealChild: false,
child: Overlay({ child: Box({
child: Box({ className: 'margin-top-5',
homogeneous: true, children: [Overlay({
className: 'sidebar-waifu-image margin-top-5', child: Box({
children: [blockImage], homogeneous: true,
}), className: 'sidebar-waifu-image',
overlays: [blockImageActions], children: [blockImage],
}),
overlays: [blockImageActions],
})]
}), }),
}); });
const thisBlock = Box({ const thisBlock = Box({