Skip to content

Commit f56b226

Browse files
authored
Merge pull request #2597 from Vizzuality/fix/mobile-timelines
Timeline: mobile style amendments
2 parents 9f08856 + dcc8b7a commit f56b226

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/assets/stylesheets/modules/map/_timeline-month.scss

+10-1
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,18 @@
8989
justify-content: center;
9090
align-items: center;
9191
position: relative;
92-
> span{
92+
93+
> span {
9394
margin: 0 5px 0 0;
9495
font-size: 12px;
96+
max-width: 100px;
97+
overflow: hidden;
98+
display: inline-block;
99+
text-overflow: ellipsis;
100+
white-space: nowrap;
101+
@media (min-width: $br-mobile-portrait){
102+
max-width: none;
103+
}
95104
}
96105
.select-box{
97106
display: flex;

app/assets/stylesheets/modules/map/_timeline-torque.scss

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.widget-timeline .timeline-year.timeline-torque {
22
padding-left: 10px;
3+
display: flex;
4+
justify-content: center;
5+
@media (min-width: $br-mobileMap) {
6+
display: block;
7+
}
38

49
.timeline-date-pickers {
510
display: inline-flex;

0 commit comments

Comments
 (0)