Skip to content

Commit

Permalink
fix: set position relative to smart-media root for special fill-modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Feb 26, 2021
1 parent b8672e3 commit 4f5bbd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/esl-media/core/esl-media.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@

&[fill-mode='cover'],
&[fill-mode='inscribe'] {
position: relative;
overflow: hidden;

height: 100%;

.esl-media-inner {
position: absolute;
top: 50%;
Expand Down

0 comments on commit 4f5bbd7

Please sign in to comment.