Skip to content

Commit 19f43a6

Browse files
authored
Update change password form to avoid overlap with password manager icons (#1134)
1 parent 3dee369 commit 19f43a6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/browser/modules/Stream/Auth/ChangePasswordForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default class ChangePasswordForm extends Component {
146146
disabled: isLoading
147147
})}
148148
/>
149-
 OR 
149+
 OR  
150150
<FormButton tabIndex="-1" onClick={this.onSuggestPassword}>
151151
Generate
152152
</FormButton>

src/browser/modules/Stream/Auth/styled.jsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,24 @@ export const StyledSegmentedConnectionTextInput = styled(StyledInput)`
9696
export const StyledRevealablePasswordWrapper = styled.div`
9797
position: relative;
9898
display: inline-block;
99-
width: 44%;
99+
width: calc(44% + 30px);
100100
min-width: 200px;
101101
102102
> input {
103-
padding-right: 30px;
104-
width: 100%;
103+
width: calc(100% - 30px);
105104
}
106105
107106
> .icon {
107+
display: inline-block;
108+
width: 25px;
109+
color: ${props => props.theme.primaryText};
108110
position: absolute;
109111
user-select: none;
110112
right: 0;
111-
top: 6px;
113+
top: 5px;
112114
height: auto;
113-
width: auto;
114115
padding: 3px;
115116
cursor: pointer;
116-
color: #333333;
117-
opacity: 0.5;
118117
}
119118
`
120119

0 commit comments

Comments
 (0)