Skip to content

Commit

Permalink
Fix alignment in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Sep 10, 2024
1 parent 6cd1f2e commit 09c9882
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 9 additions & 1 deletion shared/studio/tabs/dashboard/databaseDashboard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@
flex-direction: column;
gap: 8px;
align-items: center;
justify-content: center;
color: #555;

.loading {
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
justify-content: center;
margin: auto;
}

@include darkTheme {
color: #aaa;
}
Expand Down
10 changes: 6 additions & 4 deletions shared/studio/tabs/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ export const DatabaseDashboard = observer(function DatabaseDashboard() {
if (dbState.schemaId == null) {
return (
<div className={styles.dashboard}>
<Spinner size={20} />
Loading schema...
<div className={styles.loading}>
<Spinner size={20} />
Loading schema...
</div>
</div>
);
}
Expand Down Expand Up @@ -207,8 +209,8 @@ const FirstRunDashboard = observer(function FirstRunDashboard() {
instanceState.creatingExampleDB
? `Creating example ${dbOrBranch}...`
: exampleDBExists
? `Switch to example ${dbOrBranch}`
: `Create example ${dbOrBranch}`
? `Switch to example ${dbOrBranch}`
: `Create example ${dbOrBranch}`
}
loading={instanceState.creatingExampleDB}
disabled={instanceState.creatingExampleDB}
Expand Down

0 comments on commit 09c9882

Please sign in to comment.