Skip to content

Commit b0618f5

Browse files
shijithkjayanpriyanshu6238
authored andcommitted
Align Action header to start of the column in listing pages (#3646)
* refactor: 🎨 Update list table layouts for better space utilization - Standardize Actions column to use max-width and left-align text, expand Name columns to 50%, and fix CSS formatting inconsistencies. * refactor: ♻️ Adjust action column styling across list components - Remove left padding from SpeedSend actions column - Increase TagList actions column width from 5% to 10% - Add left padding to TriggerList actions column for alignment * Align actions column to left in list views
1 parent d878600 commit b0618f5

File tree

12 files changed

+154
-131
lines changed

12 files changed

+154
-131
lines changed
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
.Name {
2-
width: 30%;
3-
min-width: 200px;
2+
width: 50%;
3+
min-width: 200px;
4+
}
5+
6+
.Description {
7+
width: 40%;
8+
min-width: 200px;
49
}
510

611
.Actions {
7-
text-align: end;
8-
margin-left: auto;
9-
min-width: 200px;
10-
}
12+
text-align: start;
13+
margin-left: auto;
14+
max-width: 200px;
15+
}

src/containers/Certificates/CertificatesList/CertificateList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const getDescription = (description?: string) => (
2323
<>{description ? <p>{description.length < 100 ? description : `${description.slice(0, 100)}...`}</p> : ''}</>
2424
);
2525

26-
const columnStyles = [styles.Label, styles.Description, styles.Actions];
26+
const columnStyles = [styles.Name, styles.Description, styles.Actions];
2727
const certificateIcon = <CertificateIcon className={styles.DarkIcon} />;
2828

2929
export const CertificateList = () => {

src/containers/Collection/CollectionList/CollectionList.module.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@
5757
}
5858

5959
.Actions {
60-
width: 30%;
61-
min-width: 200px;
62-
text-align: end;
60+
width: 5%;
61+
min-width: 100px;
62+
text-align: start;
63+
padding-left: 25px !important;
6364
}
6465

6566
.ViewButton {

src/containers/Flow/FlowList/FlowList.module.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
min-height: 36px !important;
99
}
1010

11-
.SearchBar>fieldset {
11+
.SearchBar > fieldset {
1212
border: none !important;
1313
}
1414

@@ -31,8 +31,13 @@
3131

3232
.Actions {
3333
width: 15%;
34-
min-width: 200px;
35-
text-align: end;
34+
max-width: 200px;
35+
text-align: start;
36+
padding-left: 25px !important;
37+
}
38+
39+
.Actions > div {
40+
justify-content: flex-start !important;
3641
}
3742

3843
.LabelText {
@@ -173,7 +178,7 @@
173178
line-height: 1;
174179
}
175180

176-
.RadioLabel>span {
181+
.RadioLabel > span {
177182
line-height: 1 !important;
178183
font-weight: 500 !important;
179184
font-size: 16px !important;
@@ -223,4 +228,4 @@
223228
.AssistantListPlain {
224229
margin: 4px 0 0;
225230
padding-left: 18px;
226-
}
231+
}
Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,180 @@
11
.Name {
2-
width: 25%;
3-
min-width: 200px;
2+
width: 25%;
3+
min-width: 200px;
44
}
55

66
.Label {
7-
width: 200px;
7+
width: 200px;
88
}
99

1010
.Body {
11-
width: 36%;
12-
min-width: 200px;
13-
word-break: break-word;
11+
width: 36%;
12+
min-width: 200px;
13+
word-break: break-word;
1414
}
1515

1616
.Reason {
17-
width: 20%;
18-
margin-right: 10px;
19-
margin-left: 10px;
20-
word-break: break-word;
17+
width: 20%;
18+
margin-right: 10px;
19+
margin-left: 10px;
20+
word-break: break-word;
2121
}
2222

2323
.Actions {
24-
width: 19%;
25-
min-width: 200px;
26-
text-align: end;
24+
width: 10%;
25+
max-width: 200px;
26+
text-align: start;
2727
}
2828

2929
.LabelContainer {
30-
display: flex;
31-
flex-direction: column;
32-
row-gap: 0.5rem;
30+
display: flex;
31+
flex-direction: column;
32+
row-gap: 0.5rem;
3333
}
3434

3535
.LabelText {
36-
font-weight: 500;
37-
font-size: 17px;
38-
word-break: break-all;
36+
font-weight: 500;
37+
font-size: 17px;
38+
word-break: break-all;
3939
}
4040

4141
.Quality {
42-
font-size: 12px;
43-
width: fit-content;
44-
padding: 2px 6px;
45-
background: #f0f7f1;
46-
color: #555555;
47-
border-radius: 8px;
42+
font-size: 12px;
43+
width: fit-content;
44+
padding: 2px 6px;
45+
background: #f0f7f1;
46+
color: #555555;
47+
border-radius: 8px;
4848
}
4949

5050
.TableText {
51-
text-align: left;
52-
font-size: 14px;
53-
color: #93a29b;
54-
white-space: pre-line;
55-
margin: 0;
56-
padding: 0;
51+
text-align: left;
52+
font-size: 14px;
53+
color: #93a29b;
54+
white-space: pre-line;
55+
margin: 0;
56+
padding: 0;
5757
}
5858

5959
.Status {
60-
text-align: center;
60+
text-align: center;
6161
}
6262

6363
.AlignCenter {
64-
display: flex;
65-
align-items: center;
66-
justify-content: center;
64+
display: flex;
65+
align-items: center;
66+
justify-content: center;
6767
}
6868

6969
.Status svg {
70-
margin-right: 8px;
70+
margin-right: 8px;
7171
}
7272

7373
.LastModified {
74-
width: 20%;
75-
min-width: 185px;
76-
color: #93a29b;
74+
width: 20%;
75+
min-width: 185px;
76+
color: #93a29b;
7777
}
7878

7979
.Status {
80-
width: 150px;
80+
width: 150px;
8181
}
8282

8383
.Filters {
84-
margin-left: 24px;
84+
margin-left: 24px;
8585
}
8686

8787
.FilterLabel {
88-
color: #073f24 !important;
89-
font-size: 16px;
90-
font-weight: 500;
91-
line-height: 1;
88+
color: #073f24 !important;
89+
font-size: 16px;
90+
font-weight: 500;
91+
line-height: 1;
9292
}
9393

9494
.Input {
95-
display: inline;
95+
display: inline;
9696
}
9797

9898
.HelperText {
99-
position: absolute;
100-
color: #2ea36a;
101-
font-weight: 400;
102-
font-size: 10px;
103-
bottom: -20px;
104-
right: 10px;
105-
text-decoration: none !important;
106-
padding: 0 12px;
99+
position: absolute;
100+
color: #2ea36a;
101+
font-weight: 400;
102+
font-size: 10px;
103+
bottom: -20px;
104+
right: 10px;
105+
text-decoration: none !important;
106+
padding: 0 12px;
107107
}
108108

109109
.ImportButton {
110-
position: relative;
111-
display: flex;
112-
flex-direction: row;
113-
align-items: center;
110+
position: relative;
111+
display: flex;
112+
flex-direction: row;
113+
align-items: center;
114114
}
115115

116116
.Uuid {
117-
display: flex;
118-
align-items: center;
119-
cursor: pointer;
120-
font-size: 12px;
121-
color: #93a29b !important;
117+
display: flex;
118+
align-items: center;
119+
cursor: pointer;
120+
font-size: 12px;
121+
color: #93a29b !important;
122122
}
123123

124124
.Copy {
125-
margin-left: 2px;
126-
font-size: 12px;
125+
margin-left: 2px;
126+
font-size: 12px;
127127
}
128128

129129
.DropDown {
130-
border-radius: 24px;
131-
border: 1px solid #cccccc;
132-
display: flex;
133-
width: 130px;
134-
margin: auto;
135-
height: 36px !important;
136-
background: #ffffff;
137-
min-height: 36px !important;
130+
border-radius: 24px;
131+
border: 1px solid #cccccc;
132+
display: flex;
133+
width: 130px;
134+
margin: auto;
135+
height: 36px !important;
136+
background: #ffffff;
137+
min-height: 36px !important;
138138
}
139139

140-
.DropDown>fieldset {
141-
border: none !important;
140+
.DropDown > fieldset {
141+
border: none !important;
142142
}
143143

144144
.FormStyle {
145-
width: 150px !important;
145+
width: 150px !important;
146146
}
147147

148148
.Category {
149-
width: 20%;
150-
min-width: 100px;
149+
width: 20%;
150+
min-width: 100px;
151151
}
152152

153153
.TemplateIcon {
154-
width: 29px;
155-
height: 29px;
154+
width: 29px;
155+
height: 29px;
156156
}
157157

158158
.HsmUpdates {
159-
margin-left: 8px;
160-
cursor: pointer;
161-
height: 36px;
162-
border: 1px solid #cccccc;
163-
background: #ffffff;
164-
box-shadow: none;
165-
font-size: 14px;
166-
color: #2ea36a;
159+
margin-left: 8px;
160+
cursor: pointer;
161+
height: 36px;
162+
border: 1px solid #cccccc;
163+
background: #ffffff;
164+
box-shadow: none;
165+
font-size: 14px;
166+
color: #2ea36a;
167167
}
168168

169169
.FilterContainer {
170-
display: flex;
171-
align-items: center;
172-
gap: 0.25rem;
170+
display: flex;
171+
align-items: center;
172+
gap: 0.25rem;
173173
}
174174

175175
.SecondaryButton {
176-
display: flex;
177-
align-items: center;
178-
gap: 0.5rem;
179-
margin: 0 0.5rem;
180-
}
176+
display: flex;
177+
align-items: center;
178+
gap: 0.5rem;
179+
margin: 0 0.5rem;
180+
}

src/containers/InteractiveMessage/InteractiveMessageList/InteractiveMessageList.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
}
99

1010
.Actions {
11-
width: 15%;
12-
min-width: 200px;
13-
text-align: end;
11+
width: 10%;
12+
max-width: 200px;
13+
text-align: start;
1414
}
1515

1616
.LabelText {

src/containers/SheetIntegration/SheetIntegrationList/SheetIntegrationList.module.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
}
99

1010
.Actions {
11-
text-align: end;
11+
text-align: start;
1212
margin-left: auto;
13-
min-width: 200px;
13+
max-width: 200px;
14+
width: 10%;
1415
}
1516

1617
.HelperText {
@@ -38,7 +39,7 @@
3839
}
3940

4041
.Name {
41-
width: 30%;
42+
width: 50%;
4243
min-width: 200px;
4344
}
4445

0 commit comments

Comments
 (0)