Skip to content

Commit 71b88bc

Browse files
authored
fix: fixed sidebar inconsistent font size (#716)
1 parent c808069 commit 71b88bc

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

src/discussions/common/HoverCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const HoverCard = ({
4545
<Button
4646
variant="tertiary"
4747
className={classNames(
48-
'px-2.5 py-2 border-0 font-style text-gray-700 font-size-12',
48+
'px-2.5 py-2 border-0 font-style text-gray-700',
4949
{ 'w-100': enableInContextSidebar },
5050
)}
5151
onClick={() => handleResponseCommentButton()}

src/discussions/posts/post/Post.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ const Post = ({ handleAddResponseButton }) => {
188188
</div>
189189
{(topicContext || topic) && (
190190
<div
191-
className={classNames(
192-
'mt-14px font-style font-size-12',
193-
{ 'w-100': enableInContextSidebar, 'mb-1': !displayPostFooter },
194-
)}
191+
className={classNames('mt-14px font-style', { 'w-100': enableInContextSidebar, 'mb-1': !displayPostFooter })}
195192
style={{ lineHeight: '20px' }}
196193
>
197194
<span className="text-gray-500" style={{ lineHeight: '20px' }}>

src/discussions/posts/post/PostSummaryFooter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const PostSummaryFooter = ({
6868
</OverlayTrigger>
6969

7070
{preview && commentCount > 1 && (
71-
<div className="d-flex align-items-center ml-4.5 text-gray-700 font-style font-size-12">
71+
<div className="d-flex align-items-center ml-4.5 text-gray-700 font-style">
7272
<OverlayTrigger
7373
overlay={(
7474
<Tooltip id={`follow-${postId}-tooltip`}>

src/index.scss

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ body,
6060
outline: $light-400 solid 2px;
6161
}
6262

63-
64-
.font-size-12 {
65-
font-size: 12px !important;
66-
}
67-
6863
.font-size-8 {
6964
font-size: 8px !important;
7065
}
@@ -630,7 +625,7 @@ th, td {
630625
}
631626

632627
.post-form h4,
633-
.btn-md {
628+
.discussion-posts .btn-md {
634629
font-size: 12px !important;
635630
}
636631
}
@@ -656,28 +651,28 @@ th, td {
656651
}
657652

658653
.post-form h4,
659-
.btn-md {
654+
.discussion-posts .btn-md {
660655
font-size: 14px !important;
661656
}
662657
}
663658

664-
@media only screen and (min-device-width: 769px) {
659+
@media only screen and (min-width: 769px) {
665660

666661
body,
667662
#main {
668663
font-size: 14px;
669664
}
670665
}
671666

672-
@media only screen and (max-device-width: 768px) {
667+
@media only screen and (max-width: 768px) {
673668

674669
body,
675670
#main {
676671
font-size: 12px;
677672
}
678673
}
679674

680-
@media only screen and (max-device-width: 366px) {
675+
@media only screen and (max-width: 366px) {
681676

682677
body,
683678
#main {

0 commit comments

Comments
 (0)