Skip to content

Commit a89447a

Browse files
move styling in component
1 parent 7629713 commit a89447a

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

vscode/react/src/components/tablediff/TableDiff.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function TableDiff() {
104104
// If we're still loading, show loading state
105105
if (isLoadingDiff) {
106106
return (
107-
<div className="h-full w-full">
107+
<div className="h-[100vh] w-[100vw]">
108108
<LoadingStatus>Running table diff...</LoadingStatus>
109109
</div>
110110
)
@@ -115,7 +115,7 @@ export function TableDiff() {
115115
// Show results if we have them
116116
if (tableDiffData) {
117117
return (
118-
<div className="h-full w-full">
118+
<div className="h-[100vh] w-[100vw]">
119119
<TableDiffResults data={tableDiffData} />
120120
</div>
121121
)
@@ -124,7 +124,7 @@ export function TableDiff() {
124124
// Show error if there was one
125125
if (diffError) {
126126
return (
127-
<div className="h-full w-full flex items-center justify-center">
127+
<div className="h-[100vh] w-[100vw] flex items-center justify-center">
128128
<div className="text-red-400 text-center">
129129
<div className="text-lg font-semibold mb-2">
130130
Error running table diff
@@ -137,7 +137,7 @@ export function TableDiff() {
137137

138138
// If we have initial data but no results and no error, show appropriate message
139139
return (
140-
<div className="h-full w-full flex items-center justify-center">
140+
<div className="h-[100vh] w-[100vw] flex items-center justify-center">
141141
<div className="text-neutral-400 text-center">
142142
<div className="text-lg font-semibold mb-2">No differences found</div>
143143
<div>
@@ -154,15 +154,15 @@ export function TableDiff() {
154154
// If we don't have initial data yet, show loading
155155
if (!hasInitialData) {
156156
return (
157-
<div className="h-full w-full">
157+
<div className="h-[100vh] w-[100vw]">
158158
<LoadingStatus>Loading...</LoadingStatus>
159159
</div>
160160
)
161161
}
162162

163163
// This should never happen with the new flow
164164
return (
165-
<div className="h-full w-full flex items-center justify-center">
165+
<div className="h-[100vh] w-[100vw] flex items-center justify-center">
166166
<div className="text-neutral-400 text-center">
167167
<div className="text-lg font-semibold mb-2">Unexpected state</div>
168168
<div>Please try running the table diff command again.</div>

vscode/react/src/pages/tablediff.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export function TableDiffPage() {
1616

1717
return (
1818
<QueryClientProvider client={client}>
19-
<div className="h-[100vh] w-[100vw]">
20-
<TableDiff />
21-
</div>
19+
<TableDiff />
2220
</QueryClientProvider>
2321
)
2422
}

0 commit comments

Comments
 (0)