Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix login page responsiveness issue #754

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions frontend/src/pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ function LoginPage() {
<Container fluid className="p-0">
<Row className="vh-100">
<Col
md={6}
className="d-none d-md-block bg-image p-0"
lg={5}
md={{ span: 5 }}
className="d-none d-lg-block d-md-block bg-image p-0"
style={{
position: "relative",
}}
Expand Down Expand Up @@ -101,7 +102,7 @@ function LoginPage() {
</div>
</Col>

<Col md={6} className="my-auto">
<Col lg={5} md={{ span: 5, offset: 1 }} className="my-auto">
<div
style={{
width: "100%",
Expand Down Expand Up @@ -146,15 +147,22 @@ function LoginPage() {
<InputGroup>
<Form.Control
autoComplete="current-password"
type={showPassword ? 'text' : 'password'}
type={showPassword ? "text" : "password"}
placeholder="Password"
value={password}
onChange={(e) => {
setPassword(e.target.value);
}}
/>
<InputGroup.Text onClick={togglePasswordVisibility} style={{ cursor: 'pointer' }}>
<i className={showPassword ? 'bi bi-eye-fill' : 'bi bi-eye-slash-fill'}></i>
<InputGroup.Text
onClick={togglePasswordVisibility}
style={{ cursor: "pointer" }}
>
<i
className={
showPassword ? "bi bi-eye-fill" : "bi bi-eye-slash-fill"
}
></i>
</InputGroup.Text>
</InputGroup>
</Form.Group>
Expand Down