Made view mode selector responsive. (#2421)

This commit is contained in:
Filip Barl
2017-04-07 15:04:38 +02:00
committed by GitHub
parent d71fc313b6
commit 9c566562c9
2 changed files with 15 additions and 6 deletions

View File

@@ -21,9 +21,10 @@ const Item = (icons, label, isSelected, onClick, isEnabled = true) => {
<div
className={className}
disabled={!isEnabled}
onClick={isEnabled && onClick}>
onClick={isEnabled && onClick}
title={`View ${label.toLowerCase()}`}>
<span className={icons} style={{fontSize: 12}} />
<span>{label}</span>
<span className="label">{label}</span>
</div>
);
};

View File

@@ -227,6 +227,7 @@
opacity: 0.9;
margin-bottom: 3px;
border: 1px solid transparent;
white-space: nowrap;
&-active, &:hover {
color: $text-color;
@@ -1234,6 +1235,7 @@
border-radius: $border-radius;
border: 1px solid $background-darker-color;
display: inline-block;
white-space: nowrap;
}
&-action {
@@ -1301,10 +1303,12 @@
}
}
.view-mode-selector-wrapper .fa {
margin-right: 4px;
margin-left: 0;
color: $text-secondary-color;
.view-mode-selector-wrapper {
.label { margin-left: 4px; }
.fa {
margin-left: 0;
color: $text-secondary-color;
}
}
.network-selector-action {
@@ -1872,3 +1876,7 @@
width: 25px;
}
}
@media (max-width: 1330px) {
.view-mode-selector .label { display: none; }
}