Skip to content

Commit 2a86909

Browse files
committed
Flex the power of flexbox to make sure the eye never wraps
1 parent d74c0bd commit 2a86909

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<div style="cursor:pointer;"
1+
<div style="cursor:pointer; display:flex; align-items:center; gap:0.25rem;"
22
title="Click to reveal"
33
onclick="var i=this.querySelector('input'); i.type = i.type === 'password' ? 'text':'password';">
44
<input
55
type="password"
66
readonly
77
value="{{ value }}"
88
class="form-control-plaintext p-0"
9-
style="display:inline; width:auto; cursor:pointer;"
10-
/> <i class="fa fa-eye"></i>
9+
style="flex:1; min-width:0; cursor:pointer;"
10+
/> <i class="fa fa-eye" style="flex-shrink:0;"></i>
1111
</div>

0 commit comments

Comments
 (0)