11import {
22 IonBackButton ,
3- IonButtons ,
43 IonContent ,
5- IonHeader ,
64 IonPage ,
7- IonTitle ,
8- IonToolbar ,
95 IonSegment ,
106 IonSegmentButton ,
117 IonLabel ,
@@ -131,17 +127,14 @@ const ReportDetailPage: React.FC = () => {
131127 if ( ! report ) {
132128 return (
133129 < IonPage className = "report-detail-page" >
134- < IonHeader >
135- < IonToolbar >
136- < IonButtons slot = "start" >
137- < IonBackButton defaultHref = "/tabs/home" />
138- </ IonButtons >
139- < IonTitle > { t ( 'detail.loading' ) } </ IonTitle >
140- </ IonToolbar >
141- </ IonHeader >
142130 < IonContent >
143- < div className = "ion-padding" >
144- < IonText > { t ( 'detail.loading' ) } </ IonText >
131+ < div className = "report-detail-page__header report-detail-page__header--loading" >
132+ < div className = "ion-padding" >
133+ < div className = "report-detail-page__back-button" >
134+ < IonBackButton defaultHref = "/tabs/home" text = "" />
135+ </ div >
136+ < IonText > { t ( 'detail.loading' ) } </ IonText >
137+ </ div >
145138 </ div >
146139 </ IonContent >
147140 </ IonPage >
@@ -150,27 +143,27 @@ const ReportDetailPage: React.FC = () => {
150143
151144 return (
152145 < IonPage className = "report-detail-page" >
153- < IonHeader >
154- < IonToolbar >
155- < IonButtons slot = "start" >
156- < IonBackButton defaultHref = "/tabs/home" />
157- </ IonButtons >
158- < IonTitle > { t ( 'detail.title' ) } </ IonTitle >
159- < IonButtons slot = "end" >
160- < IonButton
161- className = { `bookmark-button ${ report . bookmarked ? 'bookmark-button--active' : 'bookmark-button--inactive' } ` }
162- onClick = { handleBookmarkClick }
163- >
164- < IonIcon slot = "icon-only" icon = { report . bookmarked ? bookmark : bookmarkOutline } />
165- </ IonButton >
166- </ IonButtons >
167- </ IonToolbar >
168- </ IonHeader >
169146 < IonContent >
170147 < div className = "report-detail-page__header" >
171148 < div className = "ion-padding" >
149+ < div className = "report-detail-page__top" >
150+ < div className = "report-detail-page__back-button" >
151+ < IonBackButton defaultHref = "/tabs/home" text = "" />
152+ </ div >
153+ </ div >
154+
172155 < div className = "report-category" > { report . category } </ div >
173- < h1 className = "report-title" > { report . title } </ h1 >
156+
157+ < div className = "report-detail-page__title-row" >
158+ < h1 className = "report-title" > { report . title } </ h1 >
159+ < IonButton
160+ fill = "clear"
161+ className = { `bookmark-button ${ report . bookmarked ? 'bookmark-button--active' : 'bookmark-button--inactive' } ` }
162+ onClick = { handleBookmarkClick }
163+ >
164+ < IonIcon slot = "icon-only" icon = { report . bookmarked ? bookmark : bookmarkOutline } />
165+ </ IonButton >
166+ </ div >
174167 </ div >
175168 </ div >
176169
0 commit comments