Skip to content

Commit fa389ce

Browse files
Merge pull request #2426 from OneCommunityGlobal/deepthikannan-fix-email-ui
Deepthi Fix SEND EMAILS PAGE UI issues for 375px and up
2 parents fb879b6 + 7325e7e commit fa389ce

1 file changed

Lines changed: 41 additions & 4 deletions

File tree

src/components/Announcements/Announcements.css

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ label {
2525
textarea {
2626
margin-top: 5px; /* Space above input fields */
2727
width: 100%;
28-
padding: 10px;
28+
padding: 12px; /* Increased padding */
2929
border: 1px solid #ccc;
3030
border-radius: 4px;
31+
box-sizing: border-box; /* Ensures padding is included in width */
3132
}
3233

3334
.input-file-upload {
@@ -39,9 +40,10 @@ button.send-button {
3940
color: white;
4041
border: none;
4142
border-radius: 4px;
42-
padding: 10px 20px;
43+
padding: 12px 24px; /* Increased padding */
4344
cursor: pointer;
4445
margin-top: 20px;
46+
box-sizing: border-box; /* Ensures padding is included in width */
4547
}
4648

4749
button.send-button:hover {
@@ -57,6 +59,7 @@ button.send-button:hover {
5759
display: flex;
5860
justify-content: space-between;
5961
align-items: flex-start;
62+
box-sizing: border-box; /* Ensures padding is included in width */
6063
}
6164

6265
.editor {
@@ -73,10 +76,11 @@ button.send-button:hover {
7376

7477
.emails {
7578
margin-top: 65px;
76-
padding: 20px;
79+
padding: 24px; /* Increased padding */
7780
border: solid 1px #cacaca;
7881
border-radius: 20px;
7982
width: 300px;
83+
box-sizing: border-box; /* Ensures padding is included in width */
8084
/* Set a fixed width for the email inputs container */
8185
}
8286

@@ -111,4 +115,37 @@ button.send-button:hover {
111115
margin-top: 10px;
112116
/* Reduce margin top on smaller screens */
113117
}
114-
}
118+
}
119+
/* Responsive design: Adjust the layout for smaller screens */
120+
@media (max-width: 800px) {
121+
.email-update-container {
122+
display: flex;
123+
flex-direction: column;
124+
padding: 20px;
125+
box-sizing: border-box; /* Ensures padding is included in width */
126+
}
127+
.editor {
128+
width: 100%;
129+
margin-right: 0;
130+
margin-bottom: 20px;
131+
}
132+
.emails {
133+
width: 100%;
134+
margin-top: 20px;
135+
padding: 20px 12px; /* Adjust padding for smaller screens */
136+
box-sizing: border-box; /* Ensures padding is included in width */
137+
}
138+
.send-button {
139+
width: 100%;
140+
margin-bottom: 10px;
141+
padding: 12px; /* Ensures padding is consistent */
142+
box-sizing: border-box; /* Ensures padding is included in width */
143+
}
144+
.input-text-for-announcement,
145+
textarea {
146+
width: 100%;
147+
padding: 12px; /* Ensures padding is consistent */
148+
box-sizing: border-box; /* Ensures padding is included in width */
149+
}
150+
}
151+

0 commit comments

Comments
 (0)