Skip to content

Commit fc2eb4b

Browse files
authored
SF-3887 Fix layout of generate draft summary page on mobile (#4048)
1 parent f7468c8 commit fc2eb4b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/new-draft/new-draft.component.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ app-copyright-banner {
117117

118118
.card-header {
119119
display: flex;
120+
// On narrow screens the heading and the action button don't fit side by side, so let the button drop onto its
121+
// own line instead of being pushed outside the card.
122+
flex-wrap: wrap;
120123
justify-content: space-between;
121124
align-items: flex-start;
122125
gap: 1em;
@@ -126,8 +129,16 @@ app-copyright-banner {
126129
}
127130
}
128131

132+
.card-header-text {
133+
// The heading needs this much room before it's worth keeping the action button beside it.
134+
flex-basis: 20em;
135+
flex-grow: 1;
136+
flex-shrink: 1;
137+
}
138+
129139
.card-header-action {
130-
flex-shrink: 0;
140+
// Once on its own line the button is free to wrap its label, so even a long translation stays inside the card.
141+
max-width: 100%;
131142
}
132143

133144
.draft-books-list {

0 commit comments

Comments
 (0)