File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ <h3>Persons:</h3>
9999}
100100input [type = text ]{
101101 width : 0 ;
102- flex-grow : 4 ;
102+ flex-grow : 3 ;
103103}
104104input [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 ;
174175let 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 ( ) ;
You can’t perform that action at this time.
0 commit comments