@viur/shop-components 0.14.0 → 0.14.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
@@ -112,6 +112,7 @@ sl-tab-group {
112
112
 
113
113
  sl-tab-panel {
114
114
  height: 100%;
115
+ overflow: hidden;
115
116
  &::part(base) {
116
117
  height: 100%;
117
118
  display: flex;
@@ -122,6 +123,15 @@ sl-tab-panel {
122
123
  .viur-shop-stepper-bar {
123
124
  margin-top: var(--shop-leaf-gap, var(--ignt-spacing-small));
124
125
  justify-self: flex-end;
126
+ margin-bottom: var(--ignt-spacing-2x-small);
127
+ @media (max-width: 600px) {
128
+ & sl-button {
129
+ width: 100%;
130
+ }
131
+ & sl-button::part(base) {
132
+ min-width: 100%;
133
+ }
134
+ }
125
135
  }
126
136
 
127
137
  .hint{
@@ -85,6 +85,7 @@ const props = defineProps({
85
85
  const state = reactive({
86
86
  items: computed(() => { return shopStore.state.cartList }),
87
87
  cartTotal: computed(() => {
88
+ // TODO: Why isn't total_raw used? :: return shopStore.state.cartRoot.total_raw
88
89
  let sum = state.items.reduce((acc,item)=>{
89
90
  if (item.skel_type==="leaf"){
90
91
  acc+=item.price.current *item.quantity
@@ -114,7 +115,7 @@ const state = reactive({
114
115
  }),
115
116
  discount:computed(()=> (state.cartTotal - shopStore.state.cartRoot.total_discount_price)*-1),
116
117
  total: computed(() => {
117
- return shopStore.state.cartRoot.total
118
+ return shopStore.state.cartRoot.total_discount_price
118
119
  }),
119
120
  vat:computed(()=>{
120
121
  return shopStore.state.cartRoot.vat