File tree Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,17 @@ export default function FriendlyTime( {date} ) {
35
35
event . stopPropagation ( ) ;
36
36
setShowTooltip ( ! showTooltip ) }
37
37
} >
38
- < ReactTimeAgo date = { date } locale = "en-US" />
38
+ < p >
39
+ < ReactTimeAgo date = { date } locale = "en-US" />
40
+ </ p >
39
41
< span className = { "friendly-time__tooltip" + ( showTooltip ? " showTooltip" : "" ) } > { dateFormatted } </ span >
40
42
</ div >
41
43
}
42
44
43
45
// else return formatted date without tooltip
44
46
else {
45
- return dateFormatted ;
47
+ return < p className = { "formatted-date" } >
48
+ { dateFormatted }
49
+ </ p >
46
50
}
47
51
}
Original file line number Diff line number Diff line change @@ -373,15 +373,15 @@ export default function MapWrapper({
373
373
<img src="${ featureDetails . links . imageSource } " width='300'>
374
374
<div class="timestamp">
375
375
<p class="driveBC">Drive<span>BC</span></p>
376
- <p>` +
377
- ReactDOMServer . renderToString (
378
- < FriendlyTime date = { featureDetails . last_update_modified } /> ,
379
- ) +
380
- `</p>
376
+ ` +
377
+ ReactDOMServer . renderToString (
378
+ < FriendlyTime date = { featureDetails . last_update_modified } /> ,
379
+ ) +
380
+ `
381
+ </div>
381
382
</div>
382
383
</div>
383
- </div>
384
- </div>` ;
384
+ </div>` ;
385
385
clickedWebcam . current = featureDetails ;
386
386
387
387
popup . current . setPosition (
Original file line number Diff line number Diff line change 106
106
background-color : $Black ;
107
107
padding : 0 10px ;
108
108
display : flex ;
109
- justify-content : space-between ;
109
+ color : $White ;
110
+ font-size : 0.714em ;
110
111
111
112
p {
112
113
color : $White ;
113
- font-size : 0.625em ;
114
114
margin-bottom : 0 ;
115
115
}
116
116
121
121
}
122
122
margin-right : 10px ;
123
123
}
124
+
125
+ .friendly-time , .formatted-date {
126
+ margin-left : auto ;
127
+ }
124
128
}
125
129
}
126
130
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export default function WebcamCard({camera}) {
104
104
}
105
105
< div className = "timestamp" >
106
106
< p className = "driveBC" > Drive< span > BC</ span > </ p >
107
- < p className = "label" > < FriendlyTime date = { camera . last_update_modified } /> </ p >
107
+ < FriendlyTime date = { camera . last_update_modified } />
108
108
</ div >
109
109
< p className = "label bold" > { camera . name } </ p >
110
110
< p className = "label" > { camera . caption } </ p >
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ export default function CameraDetailsPage() {
313
313
{ replay && (
314
314
< div className = "timestamp" >
315
315
< p className = "driveBC" > Drive< span > BC</ span > </ p >
316
- < p className = "label" > < FriendlyTime date = { lastUpdate } /> </ p >
316
+ < FriendlyTime date = { lastUpdate } />
317
317
</ div >
318
318
) }
319
319
</ div >
You can’t perform that action at this time.
0 commit comments