From 496deb016d6302c95ae39527fb969f417a93d271 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 3 Apr 2025 17:07:19 +0200 Subject: [PATCH] sidebar: booru: disable broken tag copying --- .config/ags/modules/sideleft/apis/booru.js | 41 +++------------------- 1 file changed, 4 insertions(+), 37 deletions(-) diff --git a/.config/ags/modules/sideleft/apis/booru.js b/.config/ags/modules/sideleft/apis/booru.js index 6d8e5242a..706c9cbc8 100644 --- a/.config/ags/modules/sideleft/apis/booru.js +++ b/.config/ags/modules/sideleft/apis/booru.js @@ -18,10 +18,11 @@ const USER_CACHE_DIR = GLib.get_user_cache_dir(); Utils.exec(`bash -c 'mkdir -p ${USER_CACHE_DIR}/ags/media/waifus'`); Utils.exec(`bash -c 'rm ${USER_CACHE_DIR}/ags/media/waifus/*'`); -const TagButton = (command, chatEntry) => Button({ +const TagButton = (command, entry) => Button({ className: 'sidebar-chat-chip sidebar-chat-chip-action txt txt-small', - onClicked: () => { chatEntry.buffer.text += `${command} ` }, - setup: setupCursorHover, + // Interactions disabled for now because they aren't working + // onClicked: () => { entry.buffer.text += `${command} ` }, + // setup: setupCursorHover, label: command, }); @@ -481,31 +482,6 @@ export const BooruView = (chatEntry) => Scrollable({ } }); -const booruTags = Revealer({ - revealChild: false, - transition: 'crossfade', - transitionDuration: userOptions.animations.durationLarge, - child: Box({ - className: 'spacing-h-5', - children: [ - Scrollable({ - vscroll: 'never', - hscroll: 'automatic', - hexpand: true, - child: Box({ - className: 'spacing-h-5', - children: [ - TagButton('hololive'), - TagButton('yuri'), - TagButton('thighhighs'), - ] - }) - }), - Box({ className: 'separator-line' }), - ] - }) -}); - export const booruCommands = Box({ className: 'spacing-h-5', setup: (self) => { @@ -513,15 +489,6 @@ export const booruCommands = Box({ self.pack_end(CommandButton('+'), false, false, 0); self.pack_end(CommandButton('/mode konachan', 'Konachan'), false, false, 0); self.pack_end(CommandButton('/mode yandere', 'yande.re'), false, false, 0); - self.pack_start(Button({ - className: 'sidebar-chat-chip-toggle', - setup: setupCursorHover, - label: getString('Tags →'), - onClicked: () => { - booruTags.revealChild = !booruTags.revealChild; - } - }), false, false, 0); - self.pack_start(booruTags, true, true, 0); } });