Skip to content

Commit a55436c

Browse files
committed
fix(userlist): stop username input from overlapping the Log out button
Fixes #7593. In the pad's Users popup, #myusernameform had no width set and the <input id="myusernameedit"> inside it took its natural content width, pushing past the Log out button and making the button overflow the popup at common widths. Constrain #myusernameform to 75px and make the input fill its container with box-sizing: border-box so the text field stays inside the form and the Log out button sits visibly next to it rather than getting covered or clipped off-screen. Low-risk, CSS-only change. No test plan beyond visual verification because the affected control is in the users popup UI.
1 parent 145e44a commit a55436c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/static/css/pad/popup_users.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858

5959
#myusernameform {
6060
margin-left: 10px;
61+
/* Constrain the username input so the adjacent Log out button does not
62+
get pushed off the Users popup — previously the input expanded to its
63+
natural default width and overlapped the button. Fixes #7593. */
64+
width: 75px;
6165
}
6266
input#myusernameedit {
6367
height: 26px;
@@ -66,6 +70,11 @@ input#myusernameedit {
6670
border: 1px solid #ccc;
6771
background-color: transparent;
6872
margin: 0;
73+
/* Keep the input inside its 75px container (border + padding included).
74+
Without these the text field renders wider than the container on its
75+
natural content width and overlaps the Log out button. */
76+
width: 100%;
77+
box-sizing: border-box;
6978
}
7079
input#myusernameedit:not(.editable) {
7180
color: grey;

0 commit comments

Comments
 (0)