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 (
<>
{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();

View File

@ -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]",