forked from Shinonome/dots-hyprland
sidebar: minor tweaks
This commit is contained in:
@@ -369,6 +369,7 @@ const booruTags = Revealer({
|
|||||||
child: Box({
|
child: Box({
|
||||||
className: 'spacing-h-5',
|
className: 'spacing-h-5',
|
||||||
children: [
|
children: [
|
||||||
|
CommandButton('*'),
|
||||||
CommandButton('hololive'),
|
CommandButton('hololive'),
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ const WaifuImage = (taglist) => {
|
|||||||
else Utils.execAsync(['bash', '-c', `wget -O '${thisBlock.attribute.imagePath}' '${url}'`])
|
else Utils.execAsync(['bash', '-c', `wget -O '${thisBlock.attribute.imagePath}' '${url}'`])
|
||||||
.then(showImage)
|
.then(showImage)
|
||||||
.catch(print);
|
.catch(print);
|
||||||
thisBlock.css = `background-color: mix(${darkMode ? 'black' : 'white'}, ${dominant_color}, 0.9);`;
|
thisBlock.css = `background-color: mix(${darkMode ? 'black' : 'white'}, ${dominant_color}, 0.97);`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
@@ -319,7 +319,7 @@ export const waifuView = Scrollable({
|
|||||||
// Always scroll to bottom with new content
|
// Always scroll to bottom with new content
|
||||||
const adjustment = scrolledWindow.get_vadjustment();
|
const adjustment = scrolledWindow.get_vadjustment();
|
||||||
adjustment.connect("changed", () => {
|
adjustment.connect("changed", () => {
|
||||||
if(!chatEntry.hasFocus) return;
|
if (!chatEntry.hasFocus) return;
|
||||||
adjustment.set_value(adjustment.get_upper() - adjustment.get_page_size());
|
adjustment.set_value(adjustment.get_upper() - adjustment.get_page_size());
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user