Skip to content

Commit

Permalink
front: fix capitalized text in stdcm table results
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Macron <theo.macron0315@gmail.com>
  • Loading branch information
Akctarus committed Nov 6, 2024
1 parent 95c1305 commit fda0328
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
StdcmSuccessResponse,
} from 'applications/stdcm/types';
import { getStopDurationTime } from 'applications/stdcm/utils/formatSimulationReportSheet';
import { capitalizeFirstLetter } from 'utils/strings';

type SimulationTableProps = {
stdcmData: StdcmSuccessResponse;
Expand Down Expand Up @@ -43,7 +44,7 @@ const StcdmResultsTable = ({
<th>{t('passageStop')}</th>
<th>{t('startStop')}</th>
<th className="weight">{t('weight')}</th>
<th>{t('refEngine')}</th>
<th>{capitalizeFirstLetter(t('refEngine'))}</th>
</tr>
</thead>
<tbody className="table-results">
Expand Down
3 changes: 3 additions & 0 deletions front/src/styles/scss/applications/stdcm/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@
padding-bottom: 0.313rem;
vertical-align: middle;
}
th:last-child {
text-transform: none;
}
tbody tr:nth-child(odd) {
background-color: rgb(239, 243, 245);
}
Expand Down

0 comments on commit fda0328

Please sign in to comment.