wip fix
This commit is contained in:
parent
bd36ea0156
commit
1cac5e3f33
|
|
@ -36,6 +36,10 @@ export const EdFilePreview = () => {
|
|||
}
|
||||
}
|
||||
|
||||
const pathname = `/_file${
|
||||
f.path.startsWith("/") ? f.path : `/${f.path}`
|
||||
}/${first?.name}`;
|
||||
|
||||
return (
|
||||
<>
|
||||
{f.selected.size === 0 && (
|
||||
|
|
@ -119,12 +123,7 @@ export const EdFilePreview = () => {
|
|||
<input
|
||||
type="text"
|
||||
className="p-2 border-b flex justify-between"
|
||||
value={p.script.api._url(
|
||||
`/_file${
|
||||
f.path.startsWith("/") ? f.path : `/${f.path}`
|
||||
}/${first?.name}`,
|
||||
false
|
||||
)}
|
||||
value={`siteurl("${pathname}")`}
|
||||
readOnly
|
||||
onFocus={(e) => {
|
||||
e.currentTarget.select();
|
||||
|
|
|
|||
|
|
@ -311,6 +311,8 @@ export const EdPropPopoverForm: FC<{
|
|||
if (meta) {
|
||||
meta.set("option_mode", e as any);
|
||||
}
|
||||
|
||||
local.render()
|
||||
}}
|
||||
className={cx(
|
||||
"m-1 px-1 capitalize text-center cursor-pointer font-mono border border-slate-300 text-[11px]",
|
||||
|
|
|
|||
Loading…
Reference in New Issue