From 739b809acd67ec717761d837d4ded1b8a73a4cce Mon Sep 17 00:00:00 2001 From: Hideki Ikemoto Date: Mon, 15 Aug 2022 22:30:05 +0900 Subject: [PATCH] fix: compact menu not working --- apps/content_script/block_mediator.ts | 1 + apps/styles/google.css | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/apps/content_script/block_mediator.ts b/apps/content_script/block_mediator.ts index 3123cbd2..ef7b36c9 100644 --- a/apps/content_script/block_mediator.ts +++ b/apps/content_script/block_mediator.ts @@ -247,6 +247,7 @@ class CompactMenu { constructor(hideAnchor: Anchor, blockAnchor: Anchor, changeAnchor: Anchor, position: string) { this.operationSpan = $.span("", "block-anchor"); + this.operationSpan.classList.add("gsb-compact-menu-block-anchor"); // add icon this.iconAnchor = $.anchor(""); diff --git a/apps/styles/google.css b/apps/styles/google.css index e8a8657d..37ff58fd 100644 --- a/apps/styles/google.css +++ b/apps/styles/google.css @@ -193,3 +193,13 @@ div[role="listitem"] { .gsb-anchor { cursor: pointer; } + +.gsb-compact-menu-block-anchor { + margin-left: 5px; +} + +/* HACK for compact menu */ +.UK95Uc { + overflow: visible !important; + contain: none !important; +}