Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADJUST1-201 table widths. #63

Merged
merged 2 commits into from
Sep 27, 2023
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
13 changes: 13 additions & 0 deletions assets/scss/local.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,17 @@

.column-width-seventy-percent {
width: 70%
}

.govuk-\!-width-one-fifth {
width: 20%
}
.govuk-\!-width-two-fifths {
width: 40%
}
.govuk-\!-width-three-fifths {
width: 60%
}
.govuk-\!-width-four-fifths {
width: 80%
}
10 changes: 5 additions & 5 deletions server/views/macros/adaTable.njk
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<tbody>
{% for ada in adas %}
<tr class="govuk-table__row">
<td class="govuk-table__cell">
<td class="govuk-table__cell govuk-!-width-one-fifth">
{{ ada.dateChargeProved | date("DD MMM YYYY") }}
</td>
<td class="govuk-table__cell">
<table class="govuk-table">
<tr>
<th class="govuk-table__header" scope="col">Charge number</th>
<th class="govuk-table__header" scope="col">To be served</th>
<th class="govuk-table__header" scope="col">Heard at</th>
<th class="govuk-table__header " scope="col">Status</th>
<th class="govuk-table__header govuk-!-width-one-fifth" scope="col">Charge number</th>
<th class="govuk-table__header govuk-!-width-one-quarter" scope="col">To be served</th>
<th class="govuk-table__header govuk-!-width-one-quarter" scope="col">Heard at</th>
<th class="govuk-table__header" scope="col">Status</th>
<th class="govuk-table__header govuk-!-text-align-centre" scope="col">Days</th>
</tr>
{% for charge in ada.charges %}
Expand Down