Skip to content

Commit

Permalink
fix: Fix link list layout
Browse files Browse the repository at this point in the history
Merge pull request #340 from DFE-Digital/fix-link-list-layout
  • Loading branch information
killij authored Nov 22, 2023
2 parents 1de19c5 + 20b41da commit 71a99dd
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
5 changes: 4 additions & 1 deletion Childrens-Social-Care-CPD/Views/Shared/_BackLink.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

@model ContentLink

@if (Model == null) return;
@if (Model == null)
{
return;
}

<div class="govuk-width-container back-link">
@{
Expand Down
28 changes: 15 additions & 13 deletions Childrens-Social-Care-CPD/Views/Shared/_LinkListCard.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
@model LinkListCard
@inject IRenderer<ContentLink> _contentLinkRenderer

<govuk-heading level="2" display-size="3">
@Model.Title
</govuk-heading>
<ul class="govuk-list">
@foreach (var contentLink in Model.Links)
{
<li>
<h3>
@_contentLinkRenderer.Render(contentLink)
</h3>
</li>
}
</ul>
<div>
<govuk-heading level="2" display-size="3">
@Model.Title
</govuk-heading>
<ul class="govuk-list">
@foreach (var contentLink in Model.Links)
{
<li>
<h3>
@_contentLinkRenderer.Render(contentLink)
</h3>
</li>
}
</ul>
</div>
2 changes: 1 addition & 1 deletion Childrens-Social-Care-CPD/Views/_ViewStart.cshtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@{
Layout = "_Layout";
Layout = "_SiteLayout";
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.column-layout-row {
display: flex;
min-height: 200px
}

.column-layout-row .column {
Expand Down
1 change: 1 addition & 0 deletions Childrens-Social-Care-CPD/wwwroot/css/application.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Childrens-Social-Care-CPD/wwwroot/css/application.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Childrens-Social-Care-CPD/wwwroot/css/application.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 71a99dd

Please sign in to comment.