This commit is contained in:
Rizky 2024-03-10 20:03:25 +07:00
parent bd36ea0156
commit 1cac5e3f33
2 changed files with 7 additions and 6 deletions

View File

@ -36,6 +36,10 @@ export const EdFilePreview = () => {
} }
} }
const pathname = `/_file${
f.path.startsWith("/") ? f.path : `/${f.path}`
}/${first?.name}`;
return ( return (
<> <>
{f.selected.size === 0 && ( {f.selected.size === 0 && (
@ -119,12 +123,7 @@ export const EdFilePreview = () => {
<input <input
type="text" type="text"
className="p-2 border-b flex justify-between" className="p-2 border-b flex justify-between"
value={p.script.api._url( value={`siteurl("${pathname}")`}
`/_file${
f.path.startsWith("/") ? f.path : `/${f.path}`
}/${first?.name}`,
false
)}
readOnly readOnly
onFocus={(e) => { onFocus={(e) => {
e.currentTarget.select(); e.currentTarget.select();

View File

@ -311,6 +311,8 @@ export const EdPropPopoverForm: FC<{
if (meta) { if (meta) {
meta.set("option_mode", e as any); meta.set("option_mode", e as any);
} }
local.render()
}} }}
className={cx( className={cx(
"m-1 px-1 capitalize text-center cursor-pointer font-mono border border-slate-300 text-[11px]", "m-1 px-1 capitalize text-center cursor-pointer font-mono border border-slate-300 text-[11px]",