|
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 | + |
5 | 6 | import {
|
6 | 7 | Block,
|
7 | 8 | BlockNoteEditor,
|
@@ -29,8 +30,6 @@ import {
|
29 | 30 | } from '@floating-ui/react';
|
30 | 31 | import { useCallback, useEffect, useState } from 'react';
|
31 | 32 |
|
32 |
| -import { Icon } from '@/components'; |
33 |
| - |
34 | 33 | import { bibliographyBlockConfig } from '../custom-blocks';
|
35 | 34 |
|
36 | 35 | export const referenceInlineContentConfig = {
|
@@ -239,25 +238,23 @@ export const Reference = (
|
239 | 238 | if (!source) {
|
240 | 239 | return (
|
241 | 240 | <span>
|
242 |
| - <div className="bn-file-block-content-wrapper"> |
243 |
| - <div |
244 |
| - className="bn-add-file-button" |
245 |
| - {...referenceEditFloating.referenceElementProps} |
246 |
| - style={{ |
247 |
| - backgroundColor: 'var(--c--theme--colors--greyscale-100)', |
248 |
| - color: '#7d797a', |
249 |
| - fontSize: '0.9rem', |
250 |
| - padding: '0.8rem', |
251 |
| - borderRadius: 'var(--c--theme--spacings--3xs)', |
252 |
| - display: 'flex', |
253 |
| - gap: '0.5rem', |
254 |
| - cursor: 'pointer', |
255 |
| - }} |
256 |
| - > |
257 |
| - <Icon iconName="link" $color="#7d797a" /> |
258 |
| - <p className="bn-add-file-button-text">Add Reference</p> |
259 |
| - </div> |
260 |
| - </div> |
| 241 | + <button |
| 242 | + {...referenceEditFloating.referenceElementProps} |
| 243 | + style={{ |
| 244 | + backgroundColor: 'var(--c--theme--colors--greyscale-100)', |
| 245 | + color: '#7d797a', |
| 246 | + fontSize: '0.9rem', |
| 247 | + paddingTop: '0.4rem', |
| 248 | + paddingBottom: '0.4rem', |
| 249 | + paddingLeft: '0.6rem', |
| 250 | + paddingRight: '0.6rem', |
| 251 | + borderRadius: 'var(--c--theme--spacings--3xs)', |
| 252 | + border: 'none', |
| 253 | + cursor: 'pointer', |
| 254 | + }} |
| 255 | + > |
| 256 | + <p>Add Reference</p> |
| 257 | + </button> |
261 | 258 | {referenceEditFloating.isOpen && (
|
262 | 259 | <Components.FilePanel.Root
|
263 | 260 | className="bn-panel reference-panel"
|
|
0 commit comments