Skip to content

Commit ca78545

Browse files
committed
fix style
1 parent c934762 commit ca78545

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>Databrowser Playground</title>
77
</head>
88
<body>
9-
<div id="root" style="height: 100vh"></div>
9+
<div id="root"></div>
1010
<script src="/src/playground.tsx" type="module"></script>
1111
</body>
1212
</html>

src/components/databrowser/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const RedisBrowser = ({ token, url }: RedisCredentials) => {
2323
<DatabrowserProvider redisCredentials={credentials}>
2424
<KeysProvider>
2525
{/* ups-db is the custom class used to prefix every style in the css bundle */}
26-
<div className="ups-db">
26+
<div className="ups-db" style={{height:"100%"}}>
2727
<PanelGroup
2828
autoSaveId="persistence"
2929
direction="horizontal"

src/playground.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ import ReactDOM from "react-dom/client"
33
import { RedisBrowser } from "@/components/databrowser"
44

55
ReactDOM.createRoot(document.querySelector("#root")!).render(
6-
<main className="mx-auto flex h-[600px] max-h-full max-w-screen-lg items-center justify-center p-10">
6+
<main
7+
style={{
8+
height: "500px",
9+
width: "100vw",
10+
maxWidth: "900px",
11+
margin: "auto 0",
12+
padding: "20px",
13+
}}
14+
>
715
<RedisBrowser
816
token={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_TOKEN}
917
url={process.env.NEXT_PUBLIC_UPSTASH_REDIS_REST_URL}

0 commit comments

Comments
 (0)