Skip to content

Commit 4be3a68

Browse files
author
shuai
committed
fix: click area for pinned questions
1 parent 39e0f2e commit 4be3a68

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

ui/src/components/PinList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ const PinList: FC<IProps> = ({ data }) => {
4545
action
4646
as="li"
4747
key={item.id}
48-
className="rounded border-top p-3"
48+
className="rounded border-top p-0"
4949
style={{
5050
minWidth: '238px',
5151
width: `${100 / data.length}%`,
5252
}}>
5353
<NavLink
5454
to={pathFactory.questionLanding(item.id, item.url_title)}
55-
className="h-100 d-flex flex-column justify-content-between">
55+
className="h-100 d-flex flex-column justify-content-between p-3">
5656
<h6 className="text-wrap link-dark text-break text-truncate-2">
5757
{item.title}
5858
{item.status === 2 ? ` [${t('closed')}]` : ''}

ui/src/components/QuestionList/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ const QuestionList: FC<Props> = ({
144144
<ListGroup.Item
145145
key={li.id}
146146
action
147+
as="li"
147148
onClick={() =>
148149
handleNavigate(
149150
pathFactory.questionLanding(li.id, li.url_title),
@@ -191,7 +192,9 @@ const QuestionList: FC<Props> = ({
191192
return (
192193
<Tag
193194
key={tag.slug_name}
194-
className={`${li.tags.length - 1 === index ? '' : 'me-1'}`}
195+
className={`${
196+
li.tags.length - 1 === index ? '' : 'me-1'
197+
}`}
195198
data={tag}
196199
/>
197200
);

0 commit comments

Comments
 (0)