Skip to content

Commit d4a1844

Browse files
authored
Merge pull request #2181 from aertmann/media-browser-condensed
BUGFIX: Fix condensed layout in Media Browser
2 parents 241d676 + ee2f757 commit d4a1844

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

Neos.Media.Browser/Resources/Private/Styles/Media/_Media.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@mixin neos-media-aside-condensed {
2+
flex-direction: column;
3+
24
.neos-media-aside {
35
margin-top: $wideMargin;
46
@include clearfix;
@@ -266,6 +268,9 @@
266268
}
267269

268270
.neos-media-content {
271+
display: flex;
272+
flex-direction: row;
273+
269274
&:not(.neos-media-aside-condensed) {
270275
@include clearfix;
271276

@@ -663,15 +668,6 @@
663668
}
664669
}
665670

666-
.neos-media-content {
667-
display: flex;
668-
flex-direction: row;
669-
670-
@media screen and (max-width: 767px) {
671-
flex-direction: column;
672-
}
673-
}
674-
675671
.neos-image-inputs,
676672
.neos-image-example {
677673
flex: 1;

Neos.Media.Browser/Resources/Public/Styles/MediaBrowser.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
margin: 0;
126126
}
127127
}
128+
.neos.media-browser .neos-media-content {
129+
display: flex;
130+
flex-direction: row;
131+
}
128132
.neos.media-browser .neos-media-content:not(.neos-media-aside-condensed) {
129133
*zoom: 1;
130134
}
@@ -182,6 +186,9 @@
182186
.neos.media-browser .neos-media-content .neos-search button[type="submit"] i {
183187
vertical-align: baseline;
184188
}
189+
.neos.media-browser .neos-media-content.neos-media-aside-condensed {
190+
flex-direction: column;
191+
}
185192
.neos.media-browser .neos-media-content.neos-media-aside-condensed .neos-media-aside {
186193
margin-top: 32px;
187194
*zoom: 1;
@@ -297,6 +304,9 @@
297304
max-width: 320px;
298305
}
299306
@media (max-width: 767px) {
307+
.neos.media-browser .neos-media-content {
308+
flex-direction: column;
309+
}
300310
.neos.media-browser .neos-media-content .neos-media-aside {
301311
margin-top: 32px;
302312
*zoom: 1;
@@ -479,8 +489,7 @@
479489
display: inline-block;
480490
font-style: normal;
481491
font-variant: normal;
482-
font-family: FontAwesome;
483-
font-weight: 900;
492+
font-weight: normal;
484493
line-height: 1;
485494
vertical-align: -.125em;
486495
content: \f063;
@@ -758,15 +767,6 @@
758767
cursor: pointer;
759768
outline: 4px solid #00b5ff;
760769
}
761-
.neos.media-browser .neos-media-content {
762-
display: flex;
763-
flex-direction: row;
764-
}
765-
@media screen and (max-width: 767px) {
766-
.neos.media-browser .neos-media-content {
767-
flex-direction: column;
768-
}
769-
}
770770
.neos.media-browser .neos-image-inputs,
771771
.neos.media-browser .neos-image-example {
772772
flex: 1;

0 commit comments

Comments
 (0)