wip fix
This commit is contained in:
parent
edbbe34310
commit
df73b97c2b
|
|
@ -113,11 +113,13 @@ export const prepDCode = async (site_id: string) => {
|
|||
}
|
||||
|
||||
if (exists) {
|
||||
Bun.spawn({
|
||||
cmd: ["chmod", "777", "-R", "."],
|
||||
cwd: dir.path(`${g.datadir}/site}`),
|
||||
const chmod = Bun.spawn({
|
||||
cmd: ["chmod", "-R", "777", "."],
|
||||
cwd: dir.path(`${g.datadir}/site`),
|
||||
});
|
||||
|
||||
await chmod.exited;
|
||||
|
||||
const src_bin = Y.encodeStateAsUpdate(docs.code[site_id].src as Doc);
|
||||
const build_bin = Y.encodeStateAsUpdate(docs.code[site_id].build as Doc);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const EdMain = () => {
|
|||
<div
|
||||
className={cx(
|
||||
"flex flex-1 relative overflow-auto",
|
||||
p.mode === "mobile" ? "flex-col items-center" : ""
|
||||
p.mode === "mobile" ? "flex-col items-center" : "",
|
||||
)}
|
||||
ref={(el) => {
|
||||
if (el) {
|
||||
|
|
@ -104,7 +104,14 @@ const mainStyle = (p: PG, meta?: IMeta) => {
|
|||
bottom: 0px;
|
||||
`
|
||||
: "inset-0",
|
||||
css`
|
||||
p.mode === "mobile"
|
||||
? css`
|
||||
width: ${width};
|
||||
height: ${`${(1 / scale) * 100}%`};
|
||||
transform: scale(${scale});
|
||||
transform-origin: 50% 0% 0px;
|
||||
`
|
||||
: css`
|
||||
width: ${width};
|
||||
height: ${`${(1 / scale) * 100}%`};
|
||||
transform: scale(${scale});
|
||||
|
|
@ -141,6 +148,6 @@ const mainStyle = (p: PG, meta?: IMeta) => {
|
|||
border: 2px solid #1c88f3;
|
||||
}
|
||||
}
|
||||
`
|
||||
`,
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue