mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
style(console): update space size for table placeholder (#5204)
This commit is contained in:
parent
c1bb631648
commit
d7dd525ea4
2 changed files with 14 additions and 2 deletions
|
@ -9,6 +9,13 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding-bottom: _.unit(25);
|
|
||||||
|
.topSpace {
|
||||||
|
flex: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottomSpace {
|
||||||
|
flex: 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,12 @@ function TableEmptyWrapper({ columns, children }: Props) {
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={columns} className={styles.tableEmptyWrapper}>
|
<td colSpan={columns} className={styles.tableEmptyWrapper}>
|
||||||
<div className={styles.content}>{children}</div>
|
<div className={styles.content}>
|
||||||
|
{/* Per design requirement, the empty placeholder should have a top and bottom spacing, and the space height aspect ratio is 2:3. */}
|
||||||
|
<div className={styles.topSpace} />
|
||||||
|
{children}
|
||||||
|
<div className={styles.bottomSpace} />
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue