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
4 changes: 2 additions & 2 deletions src/components/common/ConversationTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const ConversationTimeline: React.FC<ConversationTimelineProps> = ({
sx={{
display: 'flex',
flexDirection: 'column',
gap: 3,
pt: 2,
gap: { xs: 2, sm: 3 },
pt: { xs: 1.5, sm: 2 },
maxWidth: '960px',
mx: 'auto',
position: 'relative',
Expand Down
36 changes: 22 additions & 14 deletions src/components/issues/IssueHeaderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
sx={{
backgroundColor: 'background.default',
border: `1px solid ${theme.palette.border.light}`,
borderRadius: 3,
p: { xs: 2, sm: 3 },
borderRadius: { xs: 2, sm: 3 },
p: { xs: 1.5, sm: 3 },
}}
elevation={0}
>
<Stack spacing={2}>
<Stack spacing={{ xs: 1.5, sm: 2 }}>
{/* Repository and Issue Number */}
<Box
sx={{
display: 'flex',
alignItems: 'center',
gap: 2,
gap: { xs: 1, sm: 2 },
flexWrap: 'wrap',
}}
>
Expand All @@ -64,7 +64,10 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
alignItems: 'center',
flexWrap: 'wrap',
gap: 0.5,
fontSize: { xs: '0.95rem', sm: '1rem' },
minWidth: 0,
maxWidth: '100%',
overflowWrap: 'anywhere',
fontSize: { xs: '0.86rem', sm: '1rem' },
color: STATUS_COLORS.info,
textDecoration: 'none',
'&:hover': {
Expand Down Expand Up @@ -94,8 +97,10 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
sx={{
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',
fontSize: '1.5rem',
fontSize: { xs: '1.15rem', sm: '1.5rem' },
fontWeight: 600,
lineHeight: 1.25,
overflowWrap: 'anywhere',
color: 'text.primary',
}}
>
Expand All @@ -106,16 +111,16 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
{/* Bounty and metadata row */}
<Box
sx={{
display: 'flex',
display: { xs: 'grid', sm: 'flex' },
alignItems: 'flex-start',
flexDirection: { xs: 'column', sm: 'row' },
columnGap: { sm: 4 },
rowGap: { xs: 1.75, sm: 2 },
flexWrap: { xs: 'nowrap', sm: 'wrap' },
gridTemplateColumns: { xs: 'repeat(2, minmax(0, 1fr))', sm: 'none' },
columnGap: { xs: 1.5, sm: 4 },
rowGap: { xs: 1.5, sm: 2 },
flexWrap: { sm: 'wrap' },
}}
>
<Box
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { sm: 170 } }}
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { xs: 0, sm: 170 } }}
>
<Typography
sx={{
Expand Down Expand Up @@ -196,7 +201,7 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {

{issue.authorLogin && (
<Box
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { sm: 140 } }}
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { xs: 0, sm: 140 } }}
>
<Typography
sx={{
Expand Down Expand Up @@ -227,6 +232,9 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
fontSize: '0.9rem',
color: 'text.primary',
lineHeight: 1.2,
minWidth: 0,
overflow: 'hidden',
textOverflow: 'ellipsis',
}}
>
{issue.authorLogin}
Expand All @@ -236,7 +244,7 @@ const IssueHeaderCard: React.FC<IssueHeaderCardProps> = ({ issue }) => {
)}

<Box
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { sm: 160 } }}
sx={{ width: { xs: '100%', sm: 'auto' }, minWidth: { xs: 0, sm: 160 } }}
>
<Typography
sx={{
Expand Down
12 changes: 10 additions & 2 deletions src/pages/IssueDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,23 @@ const IssueDetailsPage: React.FC = () => {
value={tabValue}
onChange={handleTabChange}
aria-label="issue details tabs"
variant="scrollable"
scrollButtons="auto"
allowScrollButtonsMobile
sx={(theme) => ({
maxWidth: '100%',
minHeight: { xs: 44, sm: 48 },
'& .MuiTab-root': {
color: STATUS_COLORS.open,
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',
textTransform: 'none',
fontWeight: 500,
minHeight: '48px',
fontSize: '14px',
minWidth: { xs: 'auto', sm: 90 },
minHeight: { xs: 44, sm: 48 },
px: { xs: 1.25, sm: 2 },
fontSize: { xs: '0.78rem', sm: '14px' },
whiteSpace: 'nowrap',
'&.Mui-selected': {
color: theme.palette.text.primary,
fontWeight: 600,
Expand Down