Skip to content

Commit

Permalink
Fix auto-complete layout at narrow widths (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert authored Sep 5, 2023
1 parent c1be24c commit 596370d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/editor/codemirror/themeExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,19 @@ export const themeExtensions = (fontSize: string) => {
".cm-tooltip.cm-completionInfo.cm-completionInfo-right": {
borderLeft: "none",
},
".cm-tooltip.cm-completionInfo.cm-completionInfo-right-narrow": {
position: "relative",
left: 0,
maxWidth: "unset !important",
},
".cm-tooltip.cm-completionInfo.cm-completionInfo-left": {
borderRight: "none",
},
".cm-tooltip.cm-completionInfo.cm-completionInfo-left-narrow": {
position: "relative",
left: 0,
maxWidth: "unset !important",
},
".cm-tooltip.cm-completionInfo": {
width: "20rem",
height: "10.5rem",
Expand Down

0 comments on commit 596370d

Please sign in to comment.