-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mespapiers): Image keeps same dimensions when rotated
The dimensions displayed on the screen. The actual dimensions of the images are already preserved.
- Loading branch information
Showing
3 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/cozy-mespapiers-lib/src/components/ModelSteps/ScanResult/ScanResultCard.styl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.image-container | ||
width 100% | ||
padding-top 100% | ||
position relative | ||
|
||
.image-container:before | ||
content "" | ||
display block | ||
margin-top -100% | ||
|
||
.image-container > * | ||
position absolute | ||
top 0 | ||
left 0 | ||
width 100% | ||
height 100% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters