diff --git a/src/app/core/layout/store-layout/store-layout.component.scss b/src/app/core/layout/store-layout/store-layout.component.scss index 260561d..b7649b8 100644 --- a/src/app/core/layout/store-layout/store-layout.component.scss +++ b/src/app/core/layout/store-layout/store-layout.component.scss @@ -21,6 +21,8 @@ .store-layout__cart-dropdown { position: absolute; + display: flex; + flex-direction: column; top: 100px; right: calc((100% - 1320px) / 2 + 1.5rem); width: 100%; @@ -34,6 +36,10 @@ overflow: hidden; animation: store-layout-slide-down 0.2s ease-out; + > app-cart { + min-height: 0; + } + @media (max-width: 1400px) { right: 1.5rem; } diff --git a/src/app/shared/components/cart/cart.component.html b/src/app/shared/components/cart/cart.component.html index 0f5da71..83c5d74 100644 --- a/src/app/shared/components/cart/cart.component.html +++ b/src/app/shared/components/cart/cart.component.html @@ -1,5 +1,5 @@
diff --git a/src/app/shared/components/cart/cart.component.scss b/src/app/shared/components/cart/cart.component.scss index fd8e176..8f47534 100644 --- a/src/app/shared/components/cart/cart.component.scss +++ b/src/app/shared/components/cart/cart.component.scss @@ -1,7 +1,15 @@ :host { - display: block; + display: flex; width: 100%; - height: 100%; + min-height: 0; + max-height: 100%; + overflow: hidden; +} + +.cart-shell { + flex: 1 1 auto; + min-height: 0; + max-height: 100%; } .cart-header {