Skip to content

Commit

Permalink
Merge pull request #2313 from alphagov/increase-publication-table-width
Browse files Browse the repository at this point in the history
Fix 'More Details' summary contents width
  • Loading branch information
ellohez authored Sep 6, 2024
2 parents 1ef0a0f + 33cace3 commit ff72ea4
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/assets/stylesheets/publications-table.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
$width: 40;

.publications-table {
position: relative;
th:first-child {
width: calc($width * 1%);
}

details {
width: calc(100 / $width * 100%);
}

table {
table-layout: fixed;
}

&--expand-link {
float: right;
Expand Down Expand Up @@ -46,14 +58,6 @@

.govuk-table {
border-top: 2px solid $govuk-text-colour;

.govuk-table__header {
white-space: nowrap;
}

.govuk-table__cell__updated {
white-space: nowrap;
}
}

.govuk-details {
Expand All @@ -79,4 +83,4 @@
word-break: break-word;
}
}
}
}

0 comments on commit ff72ea4

Please sign in to comment.