@@ -68,15 +68,15 @@ function SectionHeader({t, stats, endDate}: SectionProps): ReactElement {
6868 : ( tiers [ tiers . length - 1 ] . tier as ScoreType [ 'tierName' ] ) ;
6969
7070 return (
71- < div className = { clsx ( 'flex flex-col flex-wrap' ) } >
71+ < div className = { clsx ( 'flex flex-col flex-wrap w-full max-w-full ' ) } >
7272 < p className = { clsx ( 'font-bold text-basic text-h2' , inter . className ) } >
7373 { t . achievement }
7474 </ p >
7575 < p className = { clsx ( 'text-body3 text-placeholder' ) } >
7676 { t . achievementDetails }
7777 </ p >
7878 { /* Badges */ }
79- < div className = { clsx ( 'mt-6' , 'flex flex-row' ) } >
79+ < div className = { clsx ( 'mt-6' , 'flex flex-row flex-wrap gap-2 ' ) } >
8080 { /* Tier badge */ }
8181 < div
8282 className = { clsx (
@@ -93,24 +93,25 @@ function SectionHeader({t, stats, endDate}: SectionProps): ReactElement {
9393 />
9494 </ div >
9595 { /* AVG score badge */ }
96- < div
97- className = { clsx (
98- 'ml-2 p-2 bg-basic border rounded-md' ,
99- 'flex items-center' ,
100- ) }
101- >
96+ < div className = { clsx ( 'p-2 bg-basic border rounded-md' , 'flex items-center' ) } >
10297 < span className = "body3 mr-2" > { t . avgScore } </ span > { ' ' }
10398 < div className = "body3 p-1 bg-contrast-light dark:bg-contrast-dark rounded-md" >
10499 < p className = "text-[12px] text-white dark:text-black" > { score } </ p >
105100 </ div >
106101 </ div >
107102 </ div >
108103 { /* Scores */ }
109- < div className = { clsx ( 'mt-5' , 'flex flex-row items-center flex-wrap' ) } >
104+ < div
105+ className = { clsx (
106+ 'mt-5 w-full max-w-full' ,
107+ 'flex flex-wrap items-center' ,
108+ 'gap-x-4 gap-y-2' ,
109+ ) }
110+ >
110111 { statNames . map ( ( name ) => {
111112 return (
112- < div key = { name } className = { clsx ( 'mr-4 mt-1' , ' items-center') } >
113- < span className = "mr-2 text-basic font-bold text-[14px]" >
113+ < div key = { name } className = { clsx ( 'flex items-center gap-2 ' ) } >
114+ < span className = "text-basic font-bold text-[14px] whitespace-nowrap " >
114115 { pluginStats [ name ] . name }
115116 </ span >
116117 < div
@@ -126,7 +127,7 @@ function SectionHeader({t, stats, endDate}: SectionProps): ReactElement {
126127 } ) }
127128 </ div >
128129 { /* MonthPicker - positioned between scores and chart */ }
129- < div className = "mt-4 flex justify-start" >
130+ < div className = "mt-4 flex justify-start max-w-full w-full " >
130131 < MonthPicker
131132 t = { t }
132133 value = { endDate }
@@ -191,7 +192,12 @@ export default function SectionDooboo({
191192 ...props
192193} : SectionProps ) : ReactElement {
193194 return (
194- < div className = { clsx ( 'flex-1' , 'flex flex-col' ) } >
195+ < div
196+ className = { clsx (
197+ 'flex-1 w-full max-w-full min-w-0' ,
198+ 'flex flex-col' ,
199+ ) }
200+ >
195201 < SectionHeader { ...props } endDate = { endDate } />
196202 < hr className = "my-10 h-[1px] flex-1 text-border-light dark:text-border-dark" />
197203 < SectionBody { ...props } />
0 commit comments