mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Some improvements to completion info tooltip for new CM version
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
a1f36de67c
commit
0cc6645c2d
28
web/ui/mantine-ui/src/codemirror/theme.ts
vendored
28
web/ui/mantine-ui/src/codemirror/theme.ts
vendored
|
@ -47,7 +47,6 @@ export const baseTheme = EditorView.theme({
|
|||
},
|
||||
|
||||
".cm-tooltip.cm-completionInfo": {
|
||||
marginTop: "-11px",
|
||||
padding: "10px",
|
||||
fontFamily:
|
||||
"'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;",
|
||||
|
@ -67,6 +66,7 @@ export const baseTheme = EditorView.theme({
|
|||
borderStyle: "solid",
|
||||
borderColor: "transparent",
|
||||
},
|
||||
marginTop: "-11px",
|
||||
marginLeft: "12px",
|
||||
},
|
||||
".cm-completionInfo.cm-completionInfo-left": {
|
||||
|
@ -80,9 +80,23 @@ export const baseTheme = EditorView.theme({
|
|||
borderStyle: "solid",
|
||||
borderColor: "transparent",
|
||||
},
|
||||
marginTop: "-11px",
|
||||
marginRight: "12px",
|
||||
},
|
||||
|
||||
".cm-completionInfo.cm-completionInfo-right-narrow": {
|
||||
"&:before": {
|
||||
content: "' '",
|
||||
height: "0",
|
||||
position: "absolute",
|
||||
width: "0",
|
||||
top: "-20px",
|
||||
borderWidth: "10px",
|
||||
borderStyle: "solid",
|
||||
borderColor: "transparent",
|
||||
},
|
||||
marginTop: "10px",
|
||||
marginLeft: "150px",
|
||||
},
|
||||
".cm-completionMatchedText": {
|
||||
textDecoration: "none",
|
||||
fontWeight: "bold",
|
||||
|
@ -172,6 +186,11 @@ export const lightTheme = EditorView.theme(
|
|||
borderRightColor: "#d6ebff",
|
||||
},
|
||||
},
|
||||
".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow": {
|
||||
"&:before": {
|
||||
borderBottomColor: "#d6ebff",
|
||||
},
|
||||
},
|
||||
".cm-tooltip > .cm-completionInfo.cm-completionInfo-left": {
|
||||
"&:before": {
|
||||
borderLeftColor: "#d6ebff",
|
||||
|
@ -230,6 +249,11 @@ export const darkTheme = EditorView.theme(
|
|||
borderRightColor: "#333338",
|
||||
},
|
||||
},
|
||||
".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow": {
|
||||
"&:before": {
|
||||
borderBottomColor: "#333338",
|
||||
},
|
||||
},
|
||||
".cm-tooltip > .cm-completionInfo.cm-completionInfo-left": {
|
||||
"&:before": {
|
||||
borderLeftColor: "#333338",
|
||||
|
|
Loading…
Reference in a new issue