forked from Shinonome/dots-hyprland
sidebar: segcyer api stuff
let me cook
This commit is contained in:
@@ -204,9 +204,6 @@ const BooruPage = (taglist) => {
|
||||
overlays: [imageActions]
|
||||
})
|
||||
}
|
||||
const colorIndicator = Box({
|
||||
className: `sidebar-chat-indicator`,
|
||||
});
|
||||
const downloadState = Stack({
|
||||
homogeneous: false,
|
||||
transition: 'slide_up_down',
|
||||
@@ -233,7 +230,7 @@ const BooruPage = (taglist) => {
|
||||
hscroll: 'automatic',
|
||||
child: Box({
|
||||
hpack: 'fill',
|
||||
className: 'sidebar-waifu-content spacing-h-5',
|
||||
className: 'spacing-h-5',
|
||||
children: [
|
||||
...taglist.map((tag) => CommandButton(tag)),
|
||||
Box({ hexpand: true }),
|
||||
@@ -246,8 +243,7 @@ const BooruPage = (taglist) => {
|
||||
const pageImageGrid = Grid({
|
||||
// columnHomogeneous: true,
|
||||
// rowHomogeneous: true,
|
||||
className: 'sidebar-waifu-image',
|
||||
// css: 'min-height: 90px;'
|
||||
className: 'sidebar-booru-imagegrid',
|
||||
});
|
||||
const pageImageRevealer = Revealer({
|
||||
transition: 'slide_down',
|
||||
@@ -256,6 +252,7 @@ const BooruPage = (taglist) => {
|
||||
child: pageImageGrid,
|
||||
});
|
||||
const thisPage = Box({
|
||||
homogeneous: true,
|
||||
className: 'sidebar-chat-message',
|
||||
attribute: {
|
||||
'imagePath': '',
|
||||
@@ -289,20 +286,17 @@ const BooruPage = (taglist) => {
|
||||
downloadIndicator.attribute.hide();
|
||||
},
|
||||
},
|
||||
children: [
|
||||
colorIndicator,
|
||||
Box({
|
||||
vertical: true,
|
||||
className: 'spacing-v-5',
|
||||
children: [
|
||||
pageHeading,
|
||||
Box({
|
||||
vertical: true,
|
||||
children: [pageImageRevealer],
|
||||
})
|
||||
]
|
||||
})
|
||||
],
|
||||
children: [Box({
|
||||
vertical: true,
|
||||
className: 'spacing-v-5',
|
||||
children: [
|
||||
pageHeading,
|
||||
Box({
|
||||
vertical: true,
|
||||
children: [pageImageRevealer],
|
||||
})
|
||||
]
|
||||
})],
|
||||
});
|
||||
return thisPage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user