File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed
src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change 2
2
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
3
3
/* eslint-disable @typescript-eslint/no-unsafe-call */
4
4
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
5
+ import { Icon } from '@/components' ;
5
6
import {
6
7
Block ,
7
8
BlockNoteEditor ,
@@ -237,9 +238,25 @@ export const Reference = (
237
238
if ( ! source ) {
238
239
return (
239
240
< span >
240
- < button { ...referenceEditFloating . referenceElementProps } >
241
- Add Reference
242
- </ button >
241
+ < div className = "bn-file-block-content-wrapper" >
242
+ < div
243
+ className = "bn-add-file-button"
244
+ { ...referenceEditFloating . referenceElementProps }
245
+ style = { {
246
+ backgroundColor : 'var(--c--theme--colors--greyscale-100)' ,
247
+ color : '#7d797a' ,
248
+ fontSize : '0.9rem' ,
249
+ padding : '0.8rem' ,
250
+ borderRadius : 'var(--c--theme--spacings--3xs)' ,
251
+ display : 'flex' ,
252
+ gap : '0.5rem' ,
253
+ cursor : 'pointer' ,
254
+ } }
255
+ >
256
+ < Icon iconName = "link" $color = "#7d797a" />
257
+ < p className = "bn-add-file-button-text" > Add Reference</ p >
258
+ </ div >
259
+ </ div >
243
260
{ referenceEditFloating . isOpen && (
244
261
< Components . FilePanel . Root
245
262
className = "bn-panel reference-panel"
@@ -285,7 +302,10 @@ export const Reference = (
285
302
286
303
return (
287
304
< span >
288
- < span { ...referenceDetailsFloating . referenceElementProps } >
305
+ < span
306
+ { ...referenceDetailsFloating . referenceElementProps }
307
+ style = { { cursor : 'pointer' , color : 'var(--mantine-color-anchor)' } }
308
+ >
289
309
{ source . format ( 'citation' ) }
290
310
</ span >
291
311
{ referenceDetailsFloating . isHovered && (
You can’t perform that action at this time.
0 commit comments