Skip to content

Commit 6368341

Browse files
Make child record on patient session page responsive
1 parent e717aab commit 6368341

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

app/assets/stylesheets/components/_summary-list.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@use "../vendor/nhsuk-frontend" as *;
22

3-
.app-summary-list--full-width {
3+
@mixin _app-summary-list-full-width {
44
.nhsuk-summary-list__row {
55
display: block;
66
padding-top: nhsuk-spacing(2);
@@ -28,3 +28,13 @@
2828
padding-top: nhsuk-spacing(1);
2929
}
3030
}
31+
32+
.app-summary-list--full-width {
33+
@include _app-summary-list-full-width;
34+
}
35+
36+
.app-summary-list--full-width-at-large-desktop {
37+
@include nhsuk-media-query($from: large-desktop) {
38+
@include _app-summary-list-full-width;
39+
}
40+
}

app/views/patient-session/show.njk

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@
2222
<div class="nhsuk-grid-row">
2323
<div class="app-grid-column-patient-record" data-module="app-sticky">
2424
{{ summaryList({
25-
card: {
26-
heading: patientSession.patient.fullName,
27-
headingClasses: "nhsuk-u-margin-bottom-2",
28-
headingLevel: 3,
29-
headingSize: "s",
30-
href: patient.uri + "?referrer=" + referrer,
31-
secondary: true
32-
},
33-
classes: "app-summary-list--full-width",
34-
border: false,
25+
classes: "app-summary-list--full-width-at-large-desktop",
3526
rows: summaryRows(patient, {
3627
nhsn: {
3728
changeLabel: "the child’s NHS number",

0 commit comments

Comments
 (0)