Skip to content

Commit 29154e3

Browse files
committed
Prevent text wrapping to 3 lines
1 parent 7401ef6 commit 29154e3

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

src/app/components/pages/Concepts.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,16 @@ export const Concepts = withRouter((props: RouteComponentProps) => {
132132
: <GenericConceptsSidebar {...sidebarProps} searchStages={searchStages} setSearchStages={setSearchStages} stageCounts={stageCounts}/>
133133
}
134134
<MainContent>
135-
{pageContext?.subject && <div className="d-flex align-items-center flex-wrap flex-md-nowrap my-3">
136-
<p className="me-3 mb-3">The concepts shown on this page have been filtered to only show those that are relevant to {getHumanContext(pageContext)}.</p>
137-
<div className="ms-auto mb-3">
138-
<AffixButton size="md" color="keyline" tag={Link} to="/concepts" className="text-nowrap"
139-
affix={{
140-
affix: "icon-right",
141-
position: "suffix",
142-
type: "icon"
143-
}}>
135+
{pageContext?.subject && <div className="d-flex align-items-baseline flex-wrap flex-md-nowrap flex-lg-wrap flex-xl-nowrap mt-3">
136+
<p className="me-3">The concepts shown on this page have been filtered to only show those that are relevant to {getHumanContext(pageContext)}.</p>
137+
<AffixButton size="md" color="keyline" tag={Link} to="/concepts" className="ms-auto"
138+
affix={{
139+
affix: "icon-right",
140+
position: "suffix",
141+
type: "icon"
142+
}}>
144143
Browse all concepts
145-
</AffixButton>
146-
</div>
144+
</AffixButton>
147145
</div>}
148146
{isPhy && <div className="list-results-container p-2 my-4">
149147
<ShowLoadingQuery

src/app/components/pages/QuestionFinder.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -462,18 +462,16 @@ export const QuestionFinder = withRouter(({location}: RouteComponentProps) => {
462462
{siteSpecific(
463463
<div className="my-3">
464464
{(pageContext?.subject && pageContext.stage)
465-
? <div className="d-flex align-items-center flex-wrap flex-md-nowrap">
466-
<p className="me-3 mb-3">The questions shown on this page have been filtered to only show those that are relevant to {getHumanContext(pageContext)}.</p>
467-
<div className="ms-auto mb-3">
468-
<AffixButton size="md" color="keyline" tag={Link} to="/questions" className="text-nowrap" style={{minWidth: "136px"}}
469-
affix={{
470-
affix: "icon-right",
471-
position: "suffix",
472-
type: "icon"
473-
}}>
465+
? <div className="d-flex align-items-baseline flex-wrap flex-md-nowrap flex-lg-wrap flex-xl-nowrap">
466+
<p className="me-3">The questions shown on this page have been filtered to only show those that are relevant to {getHumanContext(pageContext)}.</p>
467+
<AffixButton size="md" color="keyline" tag={Link} to="/questions" className="ms-auto"
468+
affix={{
469+
affix: "icon-right",
470+
position: "suffix",
471+
type: "icon"
472+
}}>
474473
Browse all questions
475-
</AffixButton>
476-
</div>
474+
</AffixButton>
477475
</div>
478476
: <>Use our question finder to find questions to try on topics in Physics, Maths, Chemistry and Biology.
479477
Use our practice questions to become fluent in topics and then take your understanding and problem solving skills to the next level with our challenge questions.</>}

0 commit comments

Comments
 (0)