File tree 2 files changed +17
-13
lines changed
src/components/templates/PartyMap/components/RoomModal 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ $spacing: 20px;
6
6
.room-modal {
7
7
padding : $spacing ;
8
8
9
- background-color : #19181a ;
9
+ background-color : $saturated-black ;
10
10
background-repeat : no-repeat ;
11
11
background-size : cover ;
12
12
@@ -27,13 +27,6 @@ $spacing: 20px;
27
27
justify-content : space-around ;
28
28
align-items : center ;
29
29
30
- > img {
31
- width : 60% ;
32
- height : auto ;
33
-
34
- border-radius : $border-radius ;
35
- }
36
-
37
30
> * {
38
31
flex : 1 ;
39
32
height : fit-content ;
@@ -45,6 +38,17 @@ $spacing: 20px;
45
38
}
46
39
}
47
40
41
+ & __icon {
42
+ flex-shrink : 0 ;
43
+ height : 180px ;
44
+ width : 180px ;
45
+ border-radius : $border-radius ;
46
+ background-color : $black ;
47
+ background-size : contain ;
48
+ background-repeat : no-repeat ;
49
+ background-position : center ;
50
+ }
51
+
48
52
.userlist-container {
49
53
margin-top : $spacing ;
50
54
}
Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ export const RoomModalContent: React.FC<RoomModalContentProps> = ({
93
93
94
94
const hasRoomEvents = renderedRoomEvents ?. length > 0 ;
95
95
96
+ const iconStyles = {
97
+ backgroundImage : room . image_url ? `url(${ room . image_url } )` : undefined ,
98
+ } ;
99
+
96
100
return (
97
101
< >
98
102
< h2 > { room . title } </ h2 >
@@ -102,11 +106,7 @@ export const RoomModalContent: React.FC<RoomModalContentProps> = ({
102
106
) }
103
107
104
108
< div className = "room-modal__main" >
105
- { room . image_url ? (
106
- < img src = { room . image_url } alt = { room . title } />
107
- ) : (
108
- < span > { room . title } </ span >
109
- ) }
109
+ < div className = "room-modal__icon" style = { iconStyles } />
110
110
111
111
< RoomModalOngoingEvent
112
112
roomEvents = { roomEvents }
You can’t perform that action at this time.
0 commit comments