Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/charts/TvChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
contain: size;
display: grid;
width: 100%;
min-width: 0;
height: var(--chart-height);
aspect-ratio: var(--chart-aspect-ratio);
font: var(--f-ui-sm-roman);
Expand Down
40 changes: 34 additions & 6 deletions src/lib/top-vaults/VaultGroupTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@
:global(table.datatable.responsive tbody tr td.name) {
grid-column: 1 / -1;
align-items: center;
box-sizing: border-box;
min-height: 2.5rem;
padding-inline: calc(2.5rem + 0.5rem + 2.5rem + 1.5rem) 2.25rem;
font: var(--f-ui-lg-bold);
Expand Down Expand Up @@ -401,6 +402,10 @@
display: none;
}

:global(table.datatable.responsive tbody tr td.full_name) {
display: none;
}

:global(table.datatable.responsive tbody tr td:not(.cta)::before) {
flex: none;
font: inherit;
Expand All @@ -409,26 +414,33 @@

:global(table.datatable.responsive tbody tr td.vault_count) {
grid-column: 2;
}

:global(table.datatable.responsive tbody tr td.vault_count::before) {
content: 'vaults';
order: 2;
grid-row: 2;
}

:global(table.datatable.responsive tbody tr td.avg_apy) {
grid-column: 3;
grid-row: 2;
}

:global(table.datatable.responsive tbody tr td.tvl) {
grid-column: 4;
grid-column: 2 / -1;
grid-row: 3;
}

:global(table.datatable.responsive tbody tr td.vault_count::before) {
content: 'vaults';
order: 2;
}

:global(table.datatable.responsive tbody tr td.avg_apy::before),
:global(table.datatable.responsive tbody tr td.tvl::before) {
content: '·';
}

:global(table.datatable.responsive tbody tr td.tvl::before) {
content: none;
}

:global(table.datatable.responsive tbody tr td.avg_apy::after) {
content: 'APY';
}
Expand Down Expand Up @@ -462,6 +474,22 @@
display: none;
}
}

@media (width < 360px) {
:global(table.datatable.responsive tbody tr td.avg_apy) {
grid-column: 2 / -1;
grid-row: 3;
}

:global(table.datatable.responsive tbody tr td.avg_apy::before) {
content: none;
}

:global(table.datatable.responsive tbody tr td.tvl) {
grid-column: 2 / -1;
grid-row: 4;
}
}
}
}

Expand Down
10 changes: 8 additions & 2 deletions src/routes/vaults/[vault=slug]/ChartWithFeaturedMetrics.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,13 @@ amounts in the denomination's native currency.
<style>
.chart-area {
display: grid;
grid-template-columns: 1fr auto auto;
grid-template-columns: minmax(0, 1fr) auto auto;
gap: 1.75rem;
min-width: 0;

:global(.vault-price-chart) {
min-width: 0;
}

.divider {
width: 2px;
Expand Down Expand Up @@ -172,7 +177,7 @@ amounts in the denomination's native currency.
}

@media (--viewport-md-down) {
grid-template-columns: auto;
grid-template-columns: minmax(0, 1fr);

.divider {
display: none;
Expand All @@ -181,6 +186,7 @@ amounts in the denomination's native currency.
.featured-metrics {
grid-row: 1;
display: flex;
min-width: 0;
justify-content: space-between;
}
}
Expand Down
Loading