File tree Expand file tree Collapse file tree
src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/new-draft Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments