File tree Expand file tree Collapse file tree 3 files changed +11
-31
lines changed
components/party/management Expand file tree Collapse file tree 3 files changed +11
-31
lines changed Original file line number Diff line number Diff line change @@ -777,8 +777,8 @@ export interface components {
777777 * "name": "John D.",
778778 * "avatar_url": "https://avatars.akamai.steamstatic.com/0000000000000000.jpg",
779779 * "profile_url": "https://steamcommunity.com/id/john_doe",
780- * "created_at": "2025-04-03T15:03:07.630953033 +00:00",
781- * "updated_at": "2025-04-03T15:03:07.630954883 +00:00"
780+ * "created_at": "2025-04-02T19:24:57.122836365 +00:00",
781+ * "updated_at": "2025-04-02T19:24:57.122838146 +00:00"
782782 * }
783783 */
784784 User : {
Original file line number Diff line number Diff line change @@ -10,18 +10,14 @@ export const MapPreview = ({ party_id }: { party_id: string }) => {
1010 const mapRef = useRef < L . Map | null > ( null ) ;
1111
1212 return (
13- < div className = "card p-4 h-full flex flex-col gap-2 w-full" >
14- < h3 > Minimap</ h3 >
13+ < div className = "card p-4 h-fit flex flex-col gap-2 w-full" >
1514 { settings ?. location ?. map_id ? (
16- < div className = "aspect-square" >
17- < ServerMapModelInner
18- parentClassName = "aspect-square"
19- frozen = { true }
20- mapId = { settings . location . map_id }
21- partyId = { party_id }
22- mapRef = { mapRef }
23- />
24- </ div >
15+ < ServerMapModelInner
16+ frozen = { true }
17+ mapId = { settings . location . map_id }
18+ partyId = { party_id }
19+ mapRef = { mapRef }
20+ />
2521 ) : (
2622 < div className = "text-secondary" > No map selected</ div >
2723 ) }
Original file line number Diff line number Diff line change @@ -101,12 +101,7 @@ export const ServerMapModel = ({
101101 < p > •</ p >
102102 < p > Wiped { formatDistanceToNow ( new Date ( server . last_wipe_utc ) ) } ago</ p >
103103 </ div >
104- < ServerMapModelInner
105- mapId = { server . map_id }
106- partyId = { partyId }
107- mapRef = { mapRef }
108- parentClassName = "h-[600px]"
109- />
104+ < ServerMapModelInner mapId = { server . map_id } partyId = { partyId } mapRef = { mapRef } />
110105 < ServerSelectButton
111106 server = { server }
112107 partyId = { partyId }
@@ -126,13 +121,11 @@ export const ServerMapModelInner = ({
126121 partyId,
127122 mapRef,
128123 frozen = false ,
129- parentClassName = '' ,
130124} : {
131125 mapId : string ;
132126 partyId : string ;
133127 mapRef : React . RefObject < L . Map | null > ;
134128 frozen ?: boolean ;
135- parentClassName ?: string ;
136129} ) => {
137130 const { data : map } = useMap ( mapId ) ;
138131 const { data : partySettings } = usePartySettings ( partyId ) ;
@@ -180,19 +173,10 @@ export const ServerMapModelInner = ({
180173 }
181174 } , [ partySettings ] ) ;
182175
183- const cx = ( ...classes : string [ ] ) => {
184- return classes . filter ( Boolean ) . join ( ' ' ) ;
185- } ;
186-
187176 return (
188177 < div className = "flex flex-col gap-4" >
189178 { map && map . data && map . data . extra ?. tileBaseUrl && (
190- < div
191- className = { cx (
192- 'w-full relative rounded-md overflow-hidden border border-accent bg-[#0B3B4B]' ,
193- parentClassName
194- ) }
195- >
179+ < div className = "w-full h-[600px] relative rounded-md overflow-hidden border border-accent bg-[#0B3B4B]" >
196180 < LeafletIconFix />
197181 < MapContainer
198182 center = { [ 0 , 0 ] }
You can’t perform that action at this time.
0 commit comments