Skip to content

Commit 5705f4d

Browse files
committed
fix: resizing issue (hardcoded witdh for now)
1 parent daedbe7 commit 5705f4d

File tree

2 files changed

+4
-35
lines changed

2 files changed

+4
-35
lines changed

examples/gauge/Components/InterfaceSample.tsx

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class InterfaceSample extends DisplayComponent<InterfaceSampleProps> {
4444
minutes
4545
</div>
4646
<div class="auth-container" ref={this.authContainerRef} style={{ display: "none" }}>
47-
<div class="size-full flex flex-row divide-y bg-ng-background-900">
47+
<div class="size-full flex flex-row bg-ng-background-900">
4848
<div class="h-full w-[7rem]">
4949
<InterfaceNavbar
5050
tabs={[
@@ -84,37 +84,6 @@ export class InterfaceSample extends DisplayComponent<InterfaceSampleProps> {
8484
]}
8585
/>
8686
</div>
87-
88-
{/*
89-
<h4 style="text-align: center;">Step 3 - Query the database</h4>
90-
<div class="horizontal">
91-
<div class="vertical">
92-
<Input ref={this.icaoInputRef} value="TNCM" class="text-field" />
93-
<div class="horizontal-no-pad">
94-
<div ref={this.executeIcaoButtonRef} class="button">
95-
Fetch Airport
96-
</div>
97-
<div ref={this.loadDbRef} class="button">
98-
Load DB
99-
</div>
100-
</div>
101-
<div style="height:30px;"></div>
102-
<Input
103-
ref={this.sqlInputRef}
104-
textarea
105-
value="SELECT airport_name FROM tbl_airports WHERE airport_identifier = 'TNCM'"
106-
class="text-field"
107-
/>
108-
<div ref={this.executeSqlButtonRef} class="button">
109-
Execute SQL
110-
</div>
111-
</div>
112-
<div class="overflow-scroll h-[400px]">
113-
<pre ref={this.outputRef} id="output">
114-
The output of the query will show up here
115-
</pre>
116-
</div>
117-
</div> */}
11887
</div>
11988
</>
12089
)

examples/gauge/Components/Pages/Test/Test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ export class TestPage extends DisplayComponent<TestPageProps> {
154154

155155
render(): VNode {
156156
return (
157-
<div class="size-full flex flex-col">
157+
<div class="size-full flex flex-col flex-grow">
158158
<p class="mb-8 text-4xl">Test</p>
159-
<div class="size-full flex flex-row flex-grow">
159+
<div class="size-full w-[875px] flex flex-row">
160160
<div class="w-1/3 flex flex-col">
161161
<div class="overflow-scroll flex-grow bg-ng-background-500">
162162
{this.functionList.map(obj => (
@@ -232,7 +232,7 @@ export class TestPage extends DisplayComponent<TestPageProps> {
232232
/>
233233
</div>
234234
</div>
235-
<div class="w-2/3 bg-ng-background-700 flex flex-col">
235+
<div class="w-2/3 bg-ng-background-700 flex flex-col flex-grow">
236236
<div class="size-full p-2 flex-grow overflow-auto">
237237
<p class="text-xl whitespace-pre">{this.output}</p>
238238
</div>

0 commit comments

Comments
 (0)