Skip to content

Commit 60b91b4

Browse files
authored
Fix text sizing of feature gate table (#527)
## Description <!-- Provide a brief description of the changes in this PR --> Fixes text sizing ## Type of change <!-- Check the appropriate options that apply to this PR --> - [ ] Bug fix - [ ] New feature - [ ] Protocol integration - [ ] Documentation update - [x] Other (please describe): readability ## Screenshots <!-- For UI changes, especially protocol screens, include screenshots showing the changes --> <!-- This is REQUIRED for protocol integration PRs --> ## Testing <!-- Describe how you tested your changes --> <!-- For protocol integrations, explain how you verified the protocol data is correctly displayed --> ## Related Issues <!-- Link to any related issues this PR addresses --> <!-- Example: Fixes #123, Addresses #456 --> ## Checklist <!-- Verify that you have completed the following before requesting review --> - [x] My code follows the project's style guidelines - [ ] I have added tests that prove my fix/feature works - [x] All tests pass locally and in CI - [ ] I have updated documentation as needed - [ ] CI/CD checks pass - [ ] I have included screenshots for protocol screens (if applicable) - [ ] For security-related features, I have included links to related information ## Additional Notes <!-- Add any other context about the PR here --> <!-- For Solana Verify (Verified Builds) related changes, note that bugs should be reported to disclosures@solana.org --> <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Adjusts text sizes in feature gate table for improved readability by modifying SCSS and TSX files. > > - **CSS Adjustments**: > - Added `.small-headers` class in `_tables.scss` to set `font-size` to `0.7125rem` for table headers. > - Applied `.small-headers` class to `div` in `featureGate.tsx` to adjust header text size. > - **HTML Structure**: > - Changed `<h3>` to `<h4>` in `featureGate.tsx` for card header title. > - Added `fs-sm` class to various elements in `featureGate.tsx` to standardize small font size for feature titles, descriptions, and buttons. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=solana-foundation%2Fexplorer&utm_source=github&utm_medium=referral)<sup> for cd93dfc. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent f8c563e commit 60b91b4

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

app/scss/dashkit/_tables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ tbody td {
2828
border-bottom: 0;
2929
}
3030

31+
.small-headers thead th {
32+
font-size: 0.7125rem !important;
33+
}
34+
3135
.table-sep {
3236
background-color: $table-head-bg;
3337
text-transform: uppercase;

app/utils/feature-gate/featureGate.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export function UpcomingFeatures() {
6161
return (
6262
<div className="card">
6363
<div className="card-header">
64-
<h3 className="card-header-title">
64+
<h4 className="card-header-title">
6565
<span className="me-2">🚀</span>
6666
Upcoming {clusterName(cluster)} Features
67-
</h3>
67+
</h4>
6868
</div>
69-
<div className="table-responsive">
69+
<div className="table-responsive small-headers">
7070
<table className="table">
7171
<thead>
7272
<tr>
@@ -81,7 +81,7 @@ export function UpcomingFeatures() {
8181
<tr key={feature.key}>
8282
<td>
8383
<div className="mb-2 d-flex align-items-center">
84-
<p className="mb-0 me-3 text-decoration-underline">{feature.title}</p>
84+
<p className="mb-0 me-3 text-decoration-underline fs-sm">{feature.title}</p>
8585
{cluster === Cluster.MainnetBeta && feature.mainnetActivationEpoch && (
8686
<span className="badge bg-success">Active on Mainnet</span>
8787
)}
@@ -92,10 +92,10 @@ export function UpcomingFeatures() {
9292
<span className="badge bg-success">Active on Testnet</span>
9393
)}
9494
</div>
95-
<p className="mb-0">{feature.description}</p>
95+
<p className="mb-0 fs-sm">{feature.description}</p>
9696
</td>
9797
<td>
98-
<div className="d-flex flex-column">
98+
<div className="d-flex flex-column fs-sm">
9999
{feature.mainnetActivationEpoch && (
100100
<Link
101101
href={`/epoch/${feature.mainnetActivationEpoch}?cluster=mainnet`}
@@ -135,7 +135,7 @@ export function UpcomingFeatures() {
135135
href={feature.simd_link}
136136
target="_blank"
137137
rel="noopener noreferrer"
138-
className="btn btn-sm btn-outline-primary"
138+
className="btn btn-sm btn-outline-primary fs-sm"
139139
>
140140
SIMD {feature.simd}
141141
</a>

0 commit comments

Comments
 (0)