Skip to content

Commit

Permalink
fix(ooui): fix max-width of OOUI TextInputWidget (#666)
Browse files Browse the repository at this point in the history
* Update mediawiki.special.search.styles.less

* Update hacks.less

* Update mediawiki.special.search.styles.less
  • Loading branch information
Dringsim committed Jun 20, 2023
1 parent 348b228 commit 914b810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions resources/skins.citizen.styles/common/hacks.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ a.feedlink {
.oo-ui-widget {
font-size: 0.875rem;
}

// Replace 50em (50 * 0.875rem) with 50rem
.oo-ui-textInputWidget {
max-width: 50rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Module: mediawiki.special.search.styles
* Version: 1.39.0
*
* Date: 2022-10-20
* Date: 2023-06-20
*/

@import '../../../resources/mixins.less';
Expand All @@ -21,11 +21,6 @@
justify-content: space-between;
gap: var( --space-xl );

// Fix weird space between input field and button
.oo-ui-actionFieldLayout .oo-ui-textInputWidget {
max-width: none;
}

.oo-ui-widget {
font-size: 1rem; // HACK: Override the 14px hack we use for OOUI
}
Expand Down

0 comments on commit 914b810

Please sign in to comment.