@antscorp/antsomi-ui 1.3.5-beta.316 → 1.3.5-beta.317

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.
@@ -3,6 +3,7 @@ import styled, { css } from 'styled-components';
3
3
  import skeletonBackground from '../../../../../assets/images/background/skeleton-background.png';
4
4
  // Constants
5
5
  import { globalToken } from '@antscorp/antsomi-ui/es/constants';
6
+ import { MOBILE_VIEWPORT } from '@antscorp/antsomi-ui/es/components/atoms/MobileFrameV2/constants';
6
7
  const THUMBNAIL_CARD_RADIUS = 5;
7
8
  export const BannerWrapper = styled.div `
8
9
  width: 100%;
@@ -19,9 +20,16 @@ export const BannerWrapper = styled.div `
19
20
  #banner-mobile {
20
21
  ${props => {
21
22
  const height = props.$height || 700;
22
- const scale = (height - 10) / 764.2;
23
+ const smallScale = (height - 10) / MOBILE_VIEWPORT.MD.height;
24
+ const largeScale = (height - 10) / MOBILE_VIEWPORT.LG.height;
23
25
  return css `
24
- transform: scale(${scale});
26
+ @media screen and (max-height: 1000px) {
27
+ transform: scale(${smallScale});
28
+ }
29
+
30
+ @media screen and (min-height: 1001px) {
31
+ transform: scale(${largeScale});
32
+ }
25
33
  `;
26
34
  }}
27
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.316",
3
+ "version": "1.3.5-beta.317",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",