Skip to content

Commit

Permalink
Merge pull request #348 from afkm/stable
Browse files Browse the repository at this point in the history
Hotfix: for "Pick Media" dialog for v1.3
  • Loading branch information
mrzapp authored Nov 10, 2020
2 parents f14656f + 10b63f2 commit 6dfaa0f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"json-loader": "^0.5.4",
"mongodb": "^3.1.10",
"multer": "^1.4.1",
"sass": "^1.16.0",
"sass": "1.25.0",
"semver": "^5.6.0",
"webpack": "^4.28.1",
"webpack-cli": "^3.3.0"
Expand Down
9 changes: 5 additions & 4 deletions style/modal/mediaBrowser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
&__body {
display: flex;
padding: 0;

@include tablet {
display: block;
}
Expand Down Expand Up @@ -56,15 +56,16 @@
height: 20rem;
position: relative;
border: 1px solid transparent;
display: flex;

&:hover {
border-color: var(--color-action-500);
}

@include tablet {
max-width: calc(100% / 2);
}

@include phone {
max-width: 100%;
}
Expand Down Expand Up @@ -93,7 +94,7 @@
color: var(--color-default-text);
border-radius: var(--border-radius-small);
}

&:hover &__name {
background-color: var(--color-action-500);
color: var(--color-action-text);
Expand Down
10 changes: 7 additions & 3 deletions style/widget/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
max-width: 100%;
display: flex;
flex-direction: column;

height: 100%;

&.small {
width: 10rem;
}

&.small &__preview {
height: 10rem;
}

&__placeholder {
@include spinner;
}
Expand All @@ -35,7 +36,7 @@

&:not(.readonly) {
cursor: pointer;

&:hover {
border-color: var(--color-action-500);
background-color: var(--color-action-500);
Expand All @@ -51,6 +52,9 @@
font-size: 2rem;
position: relative;
z-index: 100;
object-fit: contain;
max-height: 100%;
max-width: 100%;
}
}

Expand Down

0 comments on commit 6dfaa0f

Please sign in to comment.