Skip to content

Commit 865cb27

Browse files
committed
buttons are larger & scroll on select items
1 parent 302f337 commit 865cb27

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/RalucePlugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ class RalucePlugin {
9393
// Calculate price of shopping cart on every update
9494
if (this.franchise) {
9595
shoppingCart.getPrice(this.franchise.id)
96-
.then(price => console.log(price))
97-
.catch(console.error);
9896
}
9997

10098
// Todo: Update list of products in shopping cart dialog
@@ -160,6 +158,10 @@ class RalucePlugin {
160158
}
161159

162160
}).catch(console.error);
161+
if (!refresh) {
162+
location.href = "#";
163+
location.href = "#raluce-ecommerce-plugin-root";
164+
}
163165
}
164166

165167
navigateTo(viewName) {

src/static/raluce-ecommerce-plugin-stylesheet.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ h1, h2, h3, h4, h5, p, button, span, i, .shopping-cart-dialog {
123123
cursor: pointer;
124124
margin-top: 10px;
125125
width: 100%;
126-
height: 40px;
126+
height: 55px;
127127
transition: 0.3s;
128128
font-size: 16px;
129+
line-height: normal;
129130
}
130131

131132
.raluce-ecommerce-button:hover {

0 commit comments

Comments
 (0)