fix: adjust table scaling
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
.card {
|
||||
background-color: var(--Base-Fill-Normal);
|
||||
border-radius: 16px;
|
||||
color: var(Theme/Primary/Light/On Surface/Text);
|
||||
color: var(--Theme-Primary-Light-On-Surface-Text);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
@@ -10,7 +10,7 @@ async function CurrentPointsBalance() {
|
||||
<h2>{`${_("Total points")}*`}</h2>
|
||||
<p
|
||||
className={styles.points}
|
||||
>{`${_("Points")}: ${user.membership.currentPoints}`}</p>
|
||||
>{`${_("Points")}: ${user.membership?.currentPoints || "N/A"}`}</p>
|
||||
<p className={styles.disclaimer}>
|
||||
{`*${_("Points may take up to 10 days to be displayed.")}`}
|
||||
</p>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.table {
|
||||
@@ -31,12 +31,9 @@
|
||||
padding: 16px 32px;
|
||||
}
|
||||
|
||||
.emptyPlaceholder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
font-size: var(--typography-Title5-Desktop-fontSize);
|
||||
.placeholder {
|
||||
width: 100%;
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--Base-Fill-Normal);
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ function EarnAndBurn({ lang }: EarnAndBurnProps) {
|
||||
</Button> */}
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<div className={styles.container}>
|
||||
<table className={styles.table}>
|
||||
<thead className={styles.thead}>
|
||||
<tr>
|
||||
@@ -83,10 +83,14 @@ function EarnAndBurn({ lang }: EarnAndBurnProps) {
|
||||
))}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colSpan={tableHeadings.length} className={styles.placeholder}>
|
||||
{_("No transactions available")}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div className={styles.emptyPlaceholder}>
|
||||
{_("No transactions available")}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user