Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions ui/src/components/QuestionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,21 @@ const QuestionList: FC<Props> = ({
return (
<div>
<div className="mb-3 d-flex flex-wrap justify-content-between">
<h5 className="fs-5 text-nowrap mb-3 mb-md-0">
{source === 'questions'
? t('all_questions')
: source === 'linked'
{/* `h1` where this heading is the page's own — the question list at
/questions has no other. Everywhere else the page brings its own
`h1` and this one sits below it. `fs-5` keeps the size it had as
an `h5`. */}
{source === 'questions' ? (
<h1 className="fs-5 text-nowrap mb-3 mb-md-0">
{t('all_questions')}
</h1>
) : (
<h2 className="fs-5 text-nowrap mb-3 mb-md-0">
{source === 'linked'
? t('x_posts', { count })
: t('x_questions', { count })}
</h5>
</h2>
)}
<div className="d-flex flex-wrap">
<QueryGroup
data={orderKeys}
Expand Down Expand Up @@ -167,15 +175,17 @@ const QuestionList: FC<Props> = ({
className="text-secondary ms-1 flex-shrink-0"
/>
</div>
<h5 className="text-wrap text-break">
{/* One level below the list's own heading, not the same
one it used to share with it. `fs-5` keeps the size. */}
<h3 className="fs-5 text-wrap text-break">
<NavLink
className="link-dark d-block"
onClick={(e) => e.stopPropagation()}
to={pathFactory.questionLanding(li.id, li.url_title)}>
{li.title}
{li.status === 2 ? ` [${t('closed')}]` : ''}
</NavLink>
</h5>
</h3>
{viewType === 'card' && (
<div className="text-truncate-2 mb-2">
<NavLink
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Badges/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const Index = () => {

return (
<div className="pt-4 mb-5">
<h3 className="mb-4">{t('title')}</h3>
<h1 className="fs-3 mb-4">{t('title')}</h1>
{badgesList?.map((item) => {
return (
<div key={item.group_name} className="mb-4">
<h5 className="mb-4">{item.group_name}</h5>
<h2 className="fs-5 mb-4">{item.group_name}</h2>
<Row>
{item.badges?.map((badge) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Questions/Linked/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const LinkedQuestions: FC = () => {
return (
<Row className="pt-4 mb-5">
<Col className="page-main flex-auto">
<h3 className="mb-3">{t('title')}</h3>
<h1 className="fs-3 mb-3">{t('title')}</h1>
<div className="mb-5">
{t('description')}&nbsp;
<a href={`/questions/${qid}`}>{questionTitle}</a>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Tags/Detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ const Index: FC = () => {
</div>
) : (
<div className="tag-box mb-5">
<h3 className="mb-3">
<h1 className="fs-3 mb-3">
<Link
to={pathFactory.tagLanding(tagInfo.slug_name)}
replace
className="link-dark">
{tagInfo.display_name}
</Link>
</h3>
</h1>

<div
className="text-break"
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Tags/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Tags = () => {
return (
<Row className="py-4 mb-4">
<Col xxl={12}>
<h3 className="mb-4">{t('title')}</h3>
<h1 className="fs-3 mb-4">{t('title')}</h1>
<div className="d-block d-sm-flex justify-content-between align-items-center flex-wrap">
<Stack direction="horizontal" gap={3} className="mb-3 mb-sm-0">
<Form>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Users = () => {
return (
<Row className="py-4 mb-4 d-flex justify-content-center">
<Col xxl={12}>
<h3 className="mb-4">{t('title')}</h3>
<h1 className="fs-3 mb-4">{t('title')}</h1>
</Col>

<Col xxl={12}>
Expand All @@ -55,7 +55,7 @@ const Users = () => {
<Fragment key={key}>
<Row className="mb-4">
<Col>
<h6 className="mb-0">{t(key)}</h6>
<h2 className="fs-6 mb-0">{t(key)}</h2>
</Col>
</Row>
<Row className={index === keys.length - 1 ? '' : 'mb-4'}>
Expand Down