@spatika/editor 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Editor } from "@tiptap/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Images, Upload } from "lucide-react";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import type { ImageInsertConfig } from "../lib/types";
|
|
5
5
|
import { cn } from "../lib/cn";
|
|
@@ -248,7 +248,6 @@ export function ImageInsertPanel({ editor, close, config }: ImagePanelProps) {
|
|
|
248
248
|
onClick={insertFromUrl}
|
|
249
249
|
disabled={!url.trim()}
|
|
250
250
|
>
|
|
251
|
-
<ImagePlus className="size-4" aria-hidden="true" />
|
|
252
251
|
Insert
|
|
253
252
|
</button>
|
|
254
253
|
</div>
|
package/src/styles/editor.css
CHANGED
|
@@ -615,13 +615,20 @@
|
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
.spk-editor-toolbar-popover-btn {
|
|
618
|
+
display: inline-flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
justify-content: center;
|
|
621
|
+
gap: 0.35rem;
|
|
618
622
|
border: 0;
|
|
619
623
|
border-radius: var(--radius-pill, 999px);
|
|
620
624
|
padding: 0.35rem 0.75rem;
|
|
621
625
|
font: inherit;
|
|
622
626
|
font-size: 0.8125rem;
|
|
623
627
|
font-weight: 600;
|
|
628
|
+
line-height: 1.2;
|
|
629
|
+
white-space: nowrap;
|
|
624
630
|
cursor: pointer;
|
|
631
|
+
flex: 0 0 auto;
|
|
625
632
|
}
|
|
626
633
|
|
|
627
634
|
.spk-editor-toolbar-popover-btn--ghost {
|