From 22b0f9f01e603202fed31dc86520050a366d8d0a Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 2 Jun 2017 22:34:38 +0200 Subject: [PATCH] Make usernames stick to avatar in navbar (#886) Usernames were hovering in between the search bar & avatar because of a fixed width:91px; (done because of character limit), so i instead replaced it to a max-width so that short usernames wouldn't just float in there --- public/css/main.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index e548d76b..2c7faafe 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -187,7 +187,7 @@ select.form-input { /* Property is ignored due to the display. With 'display: block', vertical-align should not be used. */ vertical-align: middle; /* Hardcoded so the div always fills up all available space while floating right */ - width: 91px; + max-width: 91px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -963,4 +963,4 @@ input.filelist-checkbox:checked + table.table-filelist { .toolbar > div.float-right { margin-top: 5px; -} \ No newline at end of file +}