File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import EnvDisplay from './EnvDisplay.vue'
11
11
import { initializeParser , useAstGrep , Mode as ModeImport } from ' ./astGrep'
12
12
13
13
// important initialization
14
- await initializeParser ()
14
+ // await initializeParser()
15
15
16
16
const {
17
17
state,
@@ -72,6 +72,7 @@ let codeMode = shallowRef('code')
72
72
Found {{ matchedHighlights.length }} match(es).
73
73
</span >
74
74
<span v-else >No match found.</span >
75
+ <ResetConfig @reset =" reset" />
75
76
</p >
76
77
</template >
77
78
</Tabs >
@@ -96,7 +97,6 @@ let codeMode = shallowRef('code')
96
97
<template #addon >
97
98
<div class =" action-bar" >
98
99
<SelectLang v-model =" lang" />
99
- <ResetConfig @reset =" reset" />
100
100
</div >
101
101
</template >
102
102
</Tabs >
@@ -125,6 +125,13 @@ let codeMode = shallowRef('code')
125
125
/* keep here since monaco suggestion details are not expanded by default */
126
126
filter : drop-shadow (0 0 16px #00000020 );
127
127
}
128
+
129
+ .match-result {
130
+ display : flex ;
131
+ justify-content : space-between ;
132
+ align-items : center ;
133
+ }
134
+
128
135
.action-bar {
129
136
display : flex ;
130
137
align-items : center ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const emits = defineEmits<{
18
18
height : 2em ;
19
19
border-radius : 50% ;
20
20
padding : 0px ;
21
- display : flex ;
21
+ display : inline- flex ;
22
22
justify-content : center ;
23
23
align-items : center ;
24
24
background : transparent ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ async function onShare() {
22
22
23
23
<template >
24
24
<div class =" toolbars" >
25
- <button class =" floating" title =" Copy your code URL to share!" @click =" onShare" >
25
+ <button class =" floating" data- title =" Copy your code URL to share!" @click =" onShare" >
26
26
<Share style =" width : 24px ; height : 24px ;" />
27
27
</button >
28
28
<button
@@ -66,12 +66,12 @@ async function onShare() {
66
66
}
67
67
68
68
@media only screen and (min-width : 780px ) {
69
- [title ] {
69
+ [data- title ] {
70
70
position : relative ;
71
71
}
72
72
73
- [title ]:after {
74
- content : attr (title );
73
+ [data- title ]:after {
74
+ content : attr (data- title );
75
75
position : absolute ;
76
76
left : -10% ;
77
77
bottom : 50% ;
@@ -85,12 +85,12 @@ async function onShare() {
85
85
transition : 0.2s ;
86
86
border-radius : 5px ;
87
87
}
88
-
89
- .dark [title ]:after {
88
+
89
+ .dark [data- title ]:after {
90
90
color : var (--vp-c-brand-1 );
91
91
}
92
92
93
- [title ]:hover :after {
93
+ [data- title ]:hover :after {
94
94
opacity : 1 ;
95
95
}
96
96
}
You can’t perform that action at this time.
0 commit comments