Skip to content

Commit 28cc7d6

Browse files
authored
Merge pull request #21 from SyncfusionExamples/EJ2-947743-usecase
947743: Need to update the inventory application in ux review
2 parents ddd358a + 90364e2 commit 28cc7d6

File tree

2 files changed

+84
-40
lines changed
  • Inventory Management and Invoice Generating/Inventory Application/src

2 files changed

+84
-40
lines changed

Inventory Management and Invoice Generating/Inventory Application/src/App.tsx

+7-8
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
10201020
ref={gridInstance}
10211021
emptyRecordTemplate={(): any => null}
10221022
gridLines="Both"
1023-
height="250px"
1023+
height='100%'
10241024
width='100%'
10251025
rowHeight={15}
10261026
textWrapSettings={wrapSettings}
@@ -1140,9 +1140,9 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
11401140

11411141
return (
11421142
<div>
1143-
<div className="input-container-title">ShopNezt Supermarket Point Of Sale (POS)</div>
1143+
<div className="input-container-title">ShopNezt Supermarket Point Of Sale (POS)</div>
11441144
{/* Customer details Header element */}
1145-
<div className="header" style={{marginTop: "15px", height: '20%'}}>
1145+
<div className="header" style={{marginTop: "15px", height: '120px'}}>
11461146
<table className="header-table" style={{marginLeft: '40px'}}>
11471147
<tr className="input-container billno"><td>
11481148
<label>Bill Number:</label></td><td>
@@ -1153,7 +1153,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
11531153
/>
11541154
</td></tr>
11551155
<tr className="input-container custid"><td>
1156-
<label>Customer ID:</label></td><td>
1156+
<label>Customer ID:</label></td><td className="customerid">
11571157
<AutoCompleteComponent
11581158
id="customerID"
11591159
placeholder="Enter customer id"
@@ -1164,7 +1164,6 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
11641164
ref={plusButtonRef}
11651165
title="Add New Customer"
11661166
onClick={addNewCustomer}
1167-
style={{ marginLeft: "4px" }}
11681167
>
11691168
+
11701169
</ButtonComponent>
@@ -1213,7 +1212,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
12131212
</td></tr></table>
12141213
</div>
12151214
{/* Main Content of the Body - Primary Grid and Vertical Amount details Card components */}
1216-
<div className="primary-container" style={{marginTop: "15px", height: '50%'}}>
1215+
<div className="primary-container" style={{marginTop: "15px", height: 'calc(100vh - 325px)'}}>
12171216
{MemorizedGridComponent}
12181217

12191218
{/* Product search by its name - Dialog popup */}
@@ -1264,7 +1263,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
12641263
</DialogComponent>
12651264

12661265
{/* Vertical Card components - Total Amount, Savings and Quantity details*/}
1267-
<div className="control-pane amount">
1266+
<div className="control-pane amount" style={{height: '100%', width: '230px'}}>
12681267
<div className="control-section card-control-section vertical_card_layout">
12691268
<div className="e-card-resize-container">
12701269
<div className="row">
@@ -1323,7 +1322,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
13231322
</div>
13241323

13251324
{/* Horizontal Card components - Delivery type, Payment type Buttons*/}
1326-
<div className="control-pane payment" style={{marginTop: "15px", height: '20%'}}>
1325+
<div className="control-pane payment" style={{marginTop: "15px", height: '80px'}}>
13271326
<div className="control-section card-control-section vertical_card_layout">
13281327
<div className="e-card-resize-container">
13291328
<div className="row">

Inventory Management and Invoice Generating/Inventory Application/src/index.css

+77-32
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
.e-grid {
7-
flex: 9;
7+
flex: 7;
88
}
99

1010
.e-grid td.e-active {
@@ -34,10 +34,6 @@
3434
}
3535
}
3636

37-
.header .input-container .e-input-group.e-control-wrapper.e-ddl {
38-
width: 86% !important;
39-
}
40-
4137
.header {
4238
display: flex;
4339
justify-content: space-between;
@@ -76,7 +72,7 @@
7672
}
7773

7874
.input-container-title {
79-
font-size: 19px;
75+
font-size: 22px;
8076
}
8177
}
8278

@@ -108,6 +104,10 @@
108104
.card-control-section.vertical_card_layout .col-xs-3.col-sm-3 #poscards.e-card {
109105
height: 90px;
110106
}
107+
108+
.control-pane.amount .col-xs-6.col-sm-6 #poscards.e-card .e-card-btn-txt {
109+
height: 70%;
110+
}
111111
}
112112

113113
.e-calendar .e-content td.e-today.e-selected:hover span.e-day,
@@ -127,14 +127,23 @@
127127
color: white
128128
}
129129

130+
.e-grid tr.e-columnheader,
131+
.e-grid tr.e-row {
132+
height: 40px !important;
133+
}
134+
130135
.input-container-title {
131136
box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.16);
132-
background: linear-gradient(to right, #fb923c , #facc15 50%, #f97316 );
137+
background: linear-gradient(to right, #fb923c, #facc15 50%, #f97316);
133138
color: black;
134139
margin: 0;
135140
padding: 5px;
136141
text-align: center;
137-
font-size: 19px;
142+
display: flex;
143+
align-items: center;
144+
justify-content: center;
145+
height: 50px;
146+
font-size: 25px;
138147
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
139148
font-weight: bold;
140149
}
@@ -219,19 +228,27 @@
219228
.primary-container .control-pane.amount {
220229
flex: 1;
221230
display: flex;
222-
flex-direction: column;
223231
justify-content: space-between;
224232
min-width: 140px;
225233
}
226234

227235
.control-pane.amount .control-section .card-layout #poscards {
228-
height: 90px;
229236
background-color: #e2e0f2;
230237
}
231238

239+
.control-pane.amount .control-section .row {
240+
margin-top: 10px;
241+
}
242+
243+
.header .input-container.custid td.customerID {
244+
display: flex;
245+
align-items: center;
246+
gap: 4px;
247+
white-space: nowrap;
248+
}
249+
232250
.control-pane.amount .control-section .card-layout #poscards .e-card-actions {
233-
padding-top: 9px;
234-
font-size: 30px;
251+
font-size: 34px;
235252
font-weight: bold;
236253
}
237254

@@ -245,10 +262,6 @@
245262
margin-left: 1px;
246263
}
247264

248-
.primary-container .e-card {
249-
height: 140px;
250-
}
251-
252265
/* Vertical card customization */
253266

254267
.card-control-section.vertical_card_layout #poscards_profile.e-card .e-card-header {
@@ -274,7 +287,6 @@
274287
.card-control-section.vertical_card_layout #poscards_profile.e-card {
275288
text-align: center;
276289
background-size: cover;
277-
height: 55px;
278290
}
279291

280292
.card-control-section.vertical_card_layout #poscards.e-card .e-card-header-caption .e-card-header-title,
@@ -351,7 +363,7 @@
351363
}
352364

353365
.control-pane.payment .e-card:hover {
354-
transform: scale(1.05) ;
366+
transform: scale(1.05);
355367
}
356368

357369
/* Button Text */
@@ -415,7 +427,7 @@
415427

416428
/* Cards */
417429
.e-card {
418-
margin: 10px 10px 0 10px;
430+
margin: 0px 10px 20px 10px;
419431
border-radius: 5px;
420432
}
421433

@@ -437,11 +449,14 @@
437449
background-color: #543cfb;
438450
/*necessary*/
439451
color: #333;
440-
line-height: 32px;
452+
line-height: 25px;
441453
}
442454

443455
/* Card Buttons */
444456
.e-card .e-card-actions .e-card-btn-txt {
457+
display: flex;
458+
align-items: center;
459+
justify-content: center;
445460
color: black;
446461
cursor: pointer;
447462
}
@@ -455,10 +470,8 @@
455470
body {
456471
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
457472
background-color: #f4f4f4;
458-
margin: 5px;
459473
position: absolute;
460474
min-width: 50%;
461-
height: auto;
462475
}
463476

464477
.control-section {
@@ -531,7 +544,7 @@ body {
531544
}
532545

533546
.e-card-btn-txt span {
534-
font-size: 17px;
547+
font-size: 20px;
535548
font-weight: bold;
536549
color: white;
537550
}
@@ -555,12 +568,13 @@ body {
555568

556569
.header .header-table {
557570
width: 35%;
558-
margin-right:5%;
571+
margin-right: 5%;
559572
}
560573

561574
.e-grid .e-row.e-altrow {
562575
background-color: #e8ebea;
563576
}
577+
564578
td {
565579
padding: 3px;
566580
}
@@ -572,30 +586,61 @@ td {
572586
width: 28px;
573587
}
574588

575-
@media screen and (max-width: 1300px) {
589+
.control-pane.amount .col-xs-6 {
590+
min-width: 20%;
591+
}
592+
593+
.control-pane.payment .col-xs-3 {
594+
padding-left: 20px;
595+
padding-right: 20px;
596+
}
576597

598+
@media screen and (max-width: 1300px) {
577599
.input-container-title {
578-
font-size: 19px;
600+
font-size: 22px;
579601
}
580602

581603
.control-pane.amount .col-xs-6 {
582604
min-width: 20%;
583-
margin-bottom: 10px;
584-
margin-left: 2%;
585605
}
586606

587607
.control-pane.payment .col-xs-3 {
588608
width: 25%;
609+
padding-left: 20px;
589610
}
590611

591612
.header .header-table {
592613
width: 28%;
593-
margin-right:50px;
614+
margin-right: 50px;
615+
}
616+
617+
.card-control-section.vertical_card_layout .col-xs-3.col-sm-3 #poscards.e-card {
618+
height: 70px !important;
594619
}
595620
}
596621

597-
@media screen and (max-width: 1200px) {
598-
.header .input-container .e-input-group.e-control-wrapper.e-ddl {
599-
width: 83% !important;
622+
@media screen and (min-height: 550px) {
623+
.control-pane.amount .control-section .card-layout .e-card {
624+
height: calc((100vh - 405px) / 3);
625+
}
626+
}
627+
628+
@media screen and (max-height: 550px) {
629+
.control-pane.amount .control-section {
630+
overflow-y: auto;
631+
}
632+
}
633+
634+
@media screen and (min-height: 700px) {
635+
636+
.e-card .e-card-header,
637+
.e-card .e-card-header-caption {
638+
line-height: calc((100vh - 405px) / 12);
639+
}
640+
}
641+
642+
@media screen and (min-height: 800px) {
643+
.control-pane.amount .e-card-header-title {
644+
font-size: 19px;
600645
}
601646
}

0 commit comments

Comments
 (0)