mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
better narrative card styles with scroll
This commit is contained in:
committed by
Franc Camps-Febrer
parent
798d0b0703
commit
dbc0b0b0f2
@@ -24,7 +24,9 @@ function NarrativeCard ({ narrative }) {
|
||||
|
||||
{/* <i className='material-icons left'>location_on</i> */}
|
||||
{/* {_renderActions(current, steps)} */}
|
||||
<p className='narrative-info-desc'>{narrative.description}</p>
|
||||
<div className='narrative-info-desc'>
|
||||
<p>{narrative.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@import 'card';
|
||||
|
||||
$card-width: 370px;
|
||||
$narrative-info-max-height: 170px;
|
||||
$narrative-info-max-height: 200px;
|
||||
$timeline-height: 170px;
|
||||
|
||||
.card-stack {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$narrative-info-width: 370px;
|
||||
$narrative-info-width: 386px;
|
||||
$timeline-height: 170px;
|
||||
|
||||
/*
|
||||
@@ -8,8 +8,8 @@ NARRATIVE INFO
|
||||
position: fixed;
|
||||
top: 30px;
|
||||
left: auto;
|
||||
right: 25px;
|
||||
height: 170px;
|
||||
right: 9px;
|
||||
height: 205px;
|
||||
width: $narrative-info-width;
|
||||
box-sizing: border-box;
|
||||
max-height: calc(100% - 250px);
|
||||
@@ -39,7 +39,8 @@ NARRATIVE INFO
|
||||
}
|
||||
|
||||
.narrative-info-desc {
|
||||
overflow: auto;
|
||||
height: 153px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
p {
|
||||
@@ -117,7 +118,7 @@ NARRATIVE INFO
|
||||
|
||||
&.right {
|
||||
// right: calc(#{$narrative-info-width} + 10px);
|
||||
right: 10px;
|
||||
right: 25px;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
@@ -142,7 +143,7 @@ NARRATIVE INFO
|
||||
position: fixed;
|
||||
padding: 2px 5px 0 5px;
|
||||
// right: $narrative-info-width - 15px - 10px;
|
||||
right: 25px;
|
||||
right: 10px;
|
||||
top: 5px;
|
||||
width: $narrative-info-width - 10px - 2px;
|
||||
// width: 15px;
|
||||
|
||||
Reference in New Issue
Block a user