Skip to content

Commit

Permalink
feat: update questions list display (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykayudo authored Oct 11, 2024
1 parent 9c03aa3 commit 3b9dd2b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/pages/Question/QuestionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ export const QuestionListItem = ({ question, query }: IProps) => {
as="li"
data-cy="question-list-item"
data-id={question._id}
mb={3}
style={{ position: 'relative' }}
sx={{
position: 'relative',
border: 'none',
borderBottom: '2px solid #cccccc',
borderRadius: 0,
}}
>
<Flex
sx={{
Expand All @@ -51,7 +55,8 @@ export const QuestionListItem = ({ question, query }: IProps) => {
sx={{
flexDirection: 'column',
gap: 1,
padding: 3,
paddingX: 3,
paddingY: 2,
}}
>
<Flex sx={{ gap: 2, flexWrap: 'wrap' }}>
Expand All @@ -66,7 +71,7 @@ export const QuestionListItem = ({ question, query }: IProps) => {
sx={{
color: 'black',
fontSize: [3, 3, 4],
marginBottom: 1,
marginBottom: 0.5,
}}
>
<InternalLink
Expand Down
12 changes: 11 additions & 1 deletion src/pages/Question/QuestionListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,17 @@ export const QuestionListing = () => {
)}

{questions && questions.length > 0 && (
<ul style={{ listStyle: 'none', padding: 0, margin: 0 }}>
<ul
style={{
listStyle: 'none',
padding: 0,
margin: 0,
marginBottom: 5,
border: '2px solid black',
borderRadius: 5,
overflowX: 'hidden',
}}
>
{questions.map((question, index) => (
<QuestionListItem key={index} question={question} query={q} />
))}
Expand Down

0 comments on commit 3b9dd2b

Please sign in to comment.