Skip to content

Commit

Permalink
Merge pull request #410 from ikemo3/fix/compact-menu-not-working
Browse files Browse the repository at this point in the history
fix: compact menu not working
  • Loading branch information
ikemo3 authored Aug 15, 2022
2 parents ef8762c + 739b809 commit 819a99b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/content_script/block_mediator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down
10 changes: 10 additions & 0 deletions apps/styles/google.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 819a99b

Please sign in to comment.