Skip to content

Commit f3e7ce4

Browse files
committed
fix(ui): improve responsiveness of SchemaPage
1 parent 3bbb33f commit f3e7ce4

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

frontend/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function App() {
1919
<LoadingProvider>
2020
<Navbar01 />
2121
<SchemaPage />
22-
<TestDetailsPane />
23-
<TestRunner />
24-
<Dashboard />
22+
{/* <TestDetailsPane /> */}
23+
{/* <TestRunner /> */}
24+
{/* <Dashboard /> */}
2525
</LoadingProvider>
2626
</TerminalProvider>
2727
</FileProvider>

frontend/src/components/ui/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Navbar01: React.FC = () => {
66
<div className="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4">
77
<a href="/" className="flex items-center space-x-3 rtl:space-x-reverse">
88
<img src="/favicon-16x16.png" className="h-8" alt="Website Logo" />
9-
<span className="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">OpenAPI Tester</span>
9+
<span className="self-center text-xl font-semibold whitespace-nowrap dark:text-white">OpenAPI Tester</span>
1010
</a>
1111
<div className="flex md:order-2 space-x-3 md:space-x-0 rtl:space-x-reverse">
1212
<button type="button" className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">

frontend/src/features/schema-input/index.module.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,34 @@
1111
}
1212
}
1313
}
14+
@media only screen and (max-width: 768px) {
15+
.schema_page {
16+
height: auto;
17+
.activity_area {
18+
grid-template-columns: none;
19+
grid-template-rows: repeat(2, 1fr);
20+
& > div:first-child {
21+
padding: 1rem 0;
22+
& > section {
23+
height: 50vh !important;
24+
}
25+
}
26+
& > div:last-child {
27+
padding: 1rem 1.5rem;
28+
& > header {
29+
&>h1{
30+
font-size: 1.5rem;
31+
margin-bottom: 0.5rem;
32+
}
33+
& > div {
34+
flex-direction: column;
35+
& > button {
36+
margin: 0;
37+
margin-bottom: 0.75rem;
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)