Make WordPress Core

Changeset 61761


Ignore:
Timestamp:
02/27/2026 08:46:40 PM (5 weeks ago)
Author:
joedolson
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/dashboard.css

    r61759 r61761  
    500500
    501501.community-events .spinner {
    502     float: none;
    503     margin: 5px 2px 0;
    504     vertical-align: top;
     502    margin: 0 2px 0;
    505503}
    506504
     
    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;
    528     margin: 0;
    529     vertical-align: top;
     529    margin: 0;
    530530}
    531531
     
    539539
    540540.community-events-form label {
    541     display: inline-block;
    542     vertical-align: top;
    543541    line-height: 2.15384615;
    544     height: 28px;
    545542}
    546543
     
    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}
     
    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
     
    14701452        font-size: 14px;
    14711453        line-height: normal;
    1472         height: auto;
    14731454        padding: 6px 0;
    14741455        border: 1px solid transparent;
    1475     }
    1476 
    1477     .community-events .spinner {
    1478         margin-top: 7px;
    14791456    }
    14801457}
Note: See TracChangeset for help on using the changeset viewer.