@wizishop/img-manager 0.2.49 → 0.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2008,7 +2008,8 @@ image-cropper {
2008
2008
  align-items: center;
2009
2009
 
2010
2010
  &--visible {
2011
- height: 200px;
2011
+ height: 250px;
2012
+ margin: 0;
2012
2013
  }
2013
2014
  }
2014
2015
 
@@ -2026,10 +2027,10 @@ image-cropper {
2026
2027
  background: white;
2027
2028
  border-radius: 4px;
2028
2029
  overflow-x: auto;
2030
+ align-items: flex-end!important;
2029
2031
  }
2030
2032
 
2031
2033
  .img_box {
2032
- padding: 20px 10px;
2033
2034
  background-color: white;
2034
2035
  display: flex;
2035
2036
  flex-direction: row;
@@ -2038,12 +2039,36 @@ image-cropper {
2038
2039
  cursor: move;
2039
2040
  flex-grow: 1;
2040
2041
  flex-basis: 0;
2041
- max-width: 150px;
2042
- width: 150px;
2043
2042
  justify-content: center;
2044
2043
  height: fit-content;
2044
+ position: relative;
2045
+ padding: 0;
2046
+ margin: 0 20px 0 0;
2047
+ width: 150px;
2048
+ max-width: 150px;
2049
+ &:before {
2050
+ content: '';
2051
+ display: block;
2052
+ padding-top: 100%;
2053
+ }
2054
+ &:first-child {
2055
+ width: 200px;
2056
+ max-width: 200px;
2057
+ }
2058
+ img {
2059
+ position: absolute;
2060
+ top: 50%;
2061
+ left: 50%;
2062
+ transform: translate(-50%, -50%);
2063
+ max-width: 100%!important;
2064
+ max-height: 100%;
2065
+ object-fit: contain;
2066
+ width: auto!important;
2067
+ height: auto;
2068
+ }
2045
2069
  }
2046
2070
 
2071
+
2047
2072
  .cdk-drag-preview {
2048
2073
  box-sizing: border-box;
2049
2074
  border-radius: 4px;
Binary file