Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add:viewport height #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions lib/components/RunFrameForCli/RunFrameForCli.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { RunFrameWithApi } from "../RunFrameWithApi/RunFrameWithApi"
import { SaveToSnippetsButton } from "./SaveToSnippetsButton"
import { RunFrameWithApi } from "../RunFrameWithApi/RunFrameWithApi";
import { SaveToSnippetsButton } from "./SaveToSnippetsButton";

export const RunFrameForCli = (props: { debug?: boolean }) => {
return (
<RunFrameWithApi
debug={props.debug}
leftHeaderContent={
<div>
<SaveToSnippetsButton />
</div>
}
/>
)
}
<div className="h-full w-full flex flex-col">
<RunFrameWithApi
debug={props.debug}
leftHeaderContent={
<div>
<SaveToSnippetsButton />
</div>
}
/>
</div>
);
};
21 changes: 14 additions & 7 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import { RunFrameForCli } from "lib/runner"
import React from "react"
import { createRoot } from "react-dom/client"
import { RunFrameForCli } from "lib/runner";
import React from "react";
import { createRoot } from "react-dom/client";

const root = createRoot(document.getElementById("root")!)
const root = createRoot(document.getElementById("root")!);

root.render(
<React.StrictMode>
<div style={{ width: "100vw", height: "100vh" }}>
<div
style={{
width: "100vw",
height: "100vh",
display: "flex",
flexDirection: "column",
}}
>
<RunFrameForCli debug={window.location.search.includes("debug")} />
</div>
</React.StrictMode>,
)
</React.StrictMode>
);
Loading