Skip to content

Commit 6d407c1

Browse files
committed
Admin: Fix alignment of community events search inputs.
Following the admin reskin, community events inputs were misaligned. Change to `flex` layout to fix alignment and improve handling for translated strings. Props huzaifaalmesbah, hmbashar, mirmpro, shailu25, joedolson. Fixes #64753. git-svn-id: https://develop.svn.wordpress.org/trunk@61761 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 530fe2e commit 6d407c1

1 file changed

Lines changed: 5 additions & 28 deletions

File tree

src/wp-admin/css/dashboard.css

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,7 @@
499499
}
500500

501501
.community-events .spinner {
502-
float: none;
503-
margin: 5px 2px 0;
504-
vertical-align: top;
502+
margin: 0 2px 0;
505503
}
506504

507505
.community-events-errors[aria-hidden="true"],
@@ -520,13 +518,15 @@
520518

521519
.community-events-form {
522520
margin: 15px 0 5px;
521+
display: flex;
522+
gap: 5px;
523+
align-items: center;
524+
flex-wrap: wrap;
523525
}
524526

525527
.community-events-form .regular-text {
526528
width: 40%;
527-
height: 29px;
528529
margin: 0;
529-
vertical-align: top;
530530
}
531531

532532
.community-events li.event-none {
@@ -538,10 +538,7 @@
538538
}
539539

540540
.community-events-form label {
541-
display: inline-block;
542-
vertical-align: top;
543541
line-height: 2.15384615;
544-
height: 28px;
545542
}
546543

547544
.community-events .activity-block > p {
@@ -553,17 +550,8 @@
553550
vertical-align: middle;
554551
}
555552

556-
#community-events-submit {
557-
margin-left: 3px;
558-
margin-right: 3px;
559-
}
560-
561553
/* Needs higher specificity than #dashboard-widgets .button-link */
562554
#dashboard-widgets .community-events-cancel.button-link {
563-
vertical-align: top;
564-
/* Same properties as the submit button for cross-browsers alignment. */
565-
line-height: 2;
566-
height: 28px;
567555
text-decoration: underline;
568556
}
569557

@@ -1454,29 +1442,18 @@ a.rsswidget {
14541442
vertical-align: baseline;
14551443
}
14561444

1457-
.community-events-form .regular-text {
1458-
height: 32px;
1459-
}
1460-
14611445
#community-events-submit {
14621446
margin-bottom: 0;
1463-
/* Override .wp-core-ui .button */
1464-
vertical-align: top;
14651447
}
14661448

14671449
.community-events-form label,
14681450
#dashboard-widgets .community-events-cancel.button-link {
14691451
/* Same properties as the submit button for cross-browsers alignment. */
14701452
font-size: 14px;
14711453
line-height: normal;
1472-
height: auto;
14731454
padding: 6px 0;
14741455
border: 1px solid transparent;
14751456
}
1476-
1477-
.community-events .spinner {
1478-
margin-top: 7px;
1479-
}
14801457
}
14811458

14821459
/* Smartphone */

0 commit comments

Comments
 (0)