File tree 2 files changed +35
-4
lines changed
2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,10 @@ function CopyMarkdown() {
209
209
onClick = { openInChatGpt }
210
210
role = "menuitem"
211
211
>
212
- < span > Open in ChatGPT</ span >
212
+ < div className = { styles . actionContent } >
213
+ < span className = { styles . actionTitle } > Open in ChatGPT</ span >
214
+ < span className = { styles . actionDescription } > Ask questions about this page</ span >
215
+ </ div >
213
216
</ button >
214
217
</ li >
215
218
< li className = { styles . item } >
@@ -218,7 +221,10 @@ function CopyMarkdown() {
218
221
onClick = { copyMarkdown }
219
222
role = "menuitem"
220
223
>
221
- < span > Copy Markdown</ span >
224
+ < div className = { styles . actionContent } >
225
+ < span className = { styles . actionTitle } > Copy Markdown</ span >
226
+ < span className = { styles . actionDescription } > Copy page source to clipboard</ span >
227
+ </ div >
222
228
</ button >
223
229
</ li >
224
230
< li className = { styles . item } >
@@ -227,7 +233,10 @@ function CopyMarkdown() {
227
233
onClick = { viewAsMarkdown }
228
234
role = "menuitem"
229
235
>
230
- < span > View in Markdown</ span >
236
+ < div className = { styles . actionContent } >
237
+ < span className = { styles . actionTitle } > View Markdown</ span >
238
+ < span className = { styles . actionDescription } > Open this page in plain text format</ span >
239
+ </ div >
231
240
</ button >
232
241
</ li >
233
242
</ ul >
Original file line number Diff line number Diff line change 108
108
.actionButton {
109
109
display : flex;
110
110
align-items : center;
111
- padding : 0.75 rem 1rem ;
111
+ padding : 0.875 rem 1rem ;
112
112
width : 100% ;
113
113
text-align : left;
114
114
color : var (--ifm-color-gray-800 , # 444950 );
120
120
outline : none;
121
121
}
122
122
123
+ .actionContent {
124
+ display : flex;
125
+ flex-direction : column;
126
+ width : 100% ;
127
+ }
128
+
129
+ .actionTitle {
130
+ font-size : 1rem ;
131
+ font-weight : 500 ;
132
+ margin-bottom : 0.25rem ;
133
+ }
134
+
135
+ .actionDescription {
136
+ font-size : 0.8125rem ;
137
+ color : var (--ifm-color-gray-600 , # 606770 );
138
+ font-weight : 400 ;
139
+ }
140
+
123
141
.dropdownItemIcon {
124
142
width : 16px ;
125
143
height : 16px ;
@@ -189,6 +207,10 @@ html[data-theme='dark'] .actionButton:focus {
189
207
color : var (--ifm-color-white , # ffffff );
190
208
}
191
209
210
+ html [data-theme = 'dark' ] .actionDescription {
211
+ color : var (--ifm-color-gray-500 , # a8acb3 );
212
+ }
213
+
192
214
.copied .buttonText {
193
215
padding-left : 24px ; /* Equal to the width of the copy icon */
194
216
padding-right : 27px ; /* Equal to the width of the arrow icon plus its margin */
You can’t perform that action at this time.
0 commit comments