mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
Merge pull request #179 from forensic-architecture/fix/infopopup-responsiveness
Fix infopopup responsiveness
This commit is contained in:
@@ -262,10 +262,11 @@ class Dashboard extends React.Component {
|
||||
|
||||
const dateHeight = 80
|
||||
const popupStyles = {
|
||||
height: `calc(100vh - ${app.timeline.dimensions.height}px - ${dateHeight}px)`,
|
||||
width: '60vw',
|
||||
height: `fit-content`,
|
||||
width: window.innerWidth > 768 ? '60vw' : `calc(100vw - var(--toolbar-width))`,
|
||||
maxWidth: 600,
|
||||
bottom: app.timeline.dimensions.height + dateHeight,
|
||||
maxHeight: window.innerHeight > 768 ? `calc(100vh - ${app.timeline.dimensions.height}px - ${dateHeight}px)` : `100vh`,
|
||||
top: 0,
|
||||
overflowY: 'scroll'
|
||||
}
|
||||
|
||||
|
||||
@@ -64,3 +64,8 @@ $vimeo-height: $panel-height / 2;
|
||||
$banner-height: 100px;
|
||||
$padding: 20px;
|
||||
$header-inset: 10px;
|
||||
|
||||
// CSS variables (for React access)
|
||||
:root {
|
||||
--toolbar-width: 110px;
|
||||
}
|
||||
@@ -36,7 +36,8 @@
|
||||
}
|
||||
|
||||
&.dark {
|
||||
background: $black-transparent;
|
||||
// background: $black-transparent;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user