Skip to content

Commit b14edf1

Browse files
committed
Style improvements and minor fixes
1 parent 256e566 commit b14edf1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

SplitBill/splitBill.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h3>Persons:</h3>
9999
}
100100
input[type=text]{
101101
width: 0;
102-
flex-grow: 4;
102+
flex-grow: 3;
103103
}
104104
input[type=number]{
105105
width: 0;
@@ -109,6 +109,7 @@ <h3>Persons:</h3>
109109
.flex {
110110
display: flex;
111111
align-items: center;
112+
flex-wrap: wrap;
112113
}
113114
.separator {
114115
margin: auto;
@@ -170,7 +171,7 @@ <h3>Persons:</h3>
170171

171172

172173
// data
173-
const MAX_UNDO = 10;
174+
const MAX_UNDO = 50;
174175
let data = loadStorage("data", {
175176
"persons": [],
176177
"items": []
@@ -452,9 +453,9 @@ <h3>Persons:</h3>
452453
set(child.querySelector(".personAmount"), getAmount(person, item));
453454
const itemPending = calculateItemPending(item);
454455
child.querySelector(".itemPending").innerText =
455-
itemPending > 0 ? `There is still ${itemPending} amount to assign` :
456-
itemPending < 0 ? `There is an extra ${-itemPending} amount` :
457-
"Item assigned";
456+
itemPending > 0 ? `${itemPending} pending` :
457+
itemPending < 0 ? `${-itemPending} extra` :
458+
"ok";
458459
child.visible(!hideCompleted || itemPending != 0);
459460
});
460461
parent.querySelector(".personTotal").innerText = calculatePersonTotal(person).formatPrice();

0 commit comments

Comments
 (0)