Skip to content

Commit 27e3fbf

Browse files
authored
fix: allow to select and copy series name from tooltip (openobserve#7025)
![image](https://github.com/user-attachments/assets/759572bd-b471-4841-b105-c403a1854a88)
1 parent c657b6b commit 27e3fbf

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

web/src/utils/dashboard/convertPromQLData.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ export const convertPromQLData = async (
251251
enterable: true,
252252
backgroundColor:
253253
store.state.theme === "dark" ? "rgba(0,0,0,1)" : "rgba(255,255,255,1)",
254-
extraCssText: "max-height: 200px; overflow: auto; max-width: 500px",
254+
extraCssText:
255+
"max-height: 200px; overflow: auto; max-width: 500px; user-select: text;",
255256
formatter: function (name: any) {
256257
// show tooltip for hovered panel only for other we only need axis so just return empty string
257258
if (
@@ -657,7 +658,8 @@ export const convertPromQLData = async (
657658
store.state.theme === "dark"
658659
? "rgba(0,0,0,1)"
659660
: "rgba(255,255,255,1)",
660-
extraCssText: "max-height: 200px; overflow: auto; max-width: 500px",
661+
extraCssText:
662+
"max-height: 200px; overflow: auto; max-width: 500px; user-select: text;",
661663
};
662664

663665
// Set coordinate system options

web/src/utils/dashboard/convertSQLData.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,8 @@ export const convertSQLData = async (
968968
enterable: true,
969969
backgroundColor:
970970
store.state.theme === "dark" ? "rgba(0,0,0,1)" : "rgba(255,255,255,1)",
971-
extraCssText: "max-height: 200px; overflow: auto; max-width: 400px",
971+
extraCssText:
972+
"max-height: 200px; overflow: auto; max-width: 400px; user-select: text;",
972973
axisPointer: {
973974
type: "cross",
974975
label: {
@@ -2115,7 +2116,8 @@ export const convertSQLData = async (
21152116
store.state.theme === "dark"
21162117
? "rgba(0,0,0,1)"
21172118
: "rgba(255,255,255,1)",
2118-
extraCssText: "max-height: 200px; overflow: auto; max-width: 500px",
2119+
extraCssText:
2120+
"max-height: 200px; overflow: auto; max-width: 500px; user-select: text;",
21192121
};
21202122
options.angleAxis = {
21212123
show: false,

0 commit comments

Comments
 (0)