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

fixed:#2502 Refactored CSS files in src/screens/BlockUser #3215

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/components/UpdateSession/UpdateSession.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@
// Simulate dragging to minimum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: -999, // Adjust the clientX to simulate different slider positions
// clientX: -999, // Adjust the clientX to simulate different slider positions
});

expect(mockOnValueChange).toHaveBeenCalledWith(15); // Adjust based on slider min value

Check failure on line 113 in src/components/UpdateSession/UpdateSession.spec.tsx

View workflow job for this annotation

GitHub Actions / Test Application

src/components/UpdateSession/UpdateSession.spec.tsx > Testing UpdateTimeout Component > Should handle minimum slider value correctly

AssertionError: expected "spy" to be called with arguments: [ 15 ] Received: Number of calls: 0 ❯ src/components/UpdateSession/UpdateSession.spec.tsx:113:31
});

it('Should handle maximum slider value correctly', async () => {
Expand All @@ -127,10 +127,10 @@
// Simulate dragging to maximum value
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: 999, // Adjust the clientX to simulate different slider positions
// clientX: 999, // Adjust the clientX to simulate different slider positions
});

expect(mockOnValueChange).toHaveBeenCalledWith(60); // Adjust based on slider max value

Check failure on line 133 in src/components/UpdateSession/UpdateSession.spec.tsx

View workflow job for this annotation

GitHub Actions / Test Application

src/components/UpdateSession/UpdateSession.spec.tsx > Testing UpdateTimeout Component > Should handle maximum slider value correctly

AssertionError: expected "spy" to be called with arguments: [ 60 ] Received: Number of calls: 0 ❯ src/components/UpdateSession/UpdateSession.spec.tsx:133:31
});

it('Should not update value if an invalid value is passed', async () => {
Expand All @@ -147,7 +147,7 @@
// Simulate invalid value handling
userEvent.click(slider, {
// Simulate clicking on the slider to focus
clientX: 0, // Adjust the clientX to simulate different slider positions
// clientX: 0, // Adjust the clientX to simulate different slider positions
});

// Ensure onValueChange is not called with invalid values
Expand Down
102 changes: 0 additions & 102 deletions src/screens/BlockUser/BlockUser.module.css

This file was deleted.

75 changes: 72 additions & 3 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ hr {
top: 50%;
width: 50%;
height: 1px;
background: #fff;
background: var(--white);
content: '';
}
.pageNotFound h1.head span:before {
Expand Down Expand Up @@ -3743,7 +3743,7 @@ button[data-testid='createPostBtn'] {

.primaryText {
font-weight: bold;
color: var(--bs-emphasis-color, #000);
color: var(--bs-emphasis-color, var(--black-color));
@extend .reusable-text-ellipsis; /* Referencing the reusable class from the general section */
}

Expand Down Expand Up @@ -3796,7 +3796,7 @@ button[data-testid='createPostBtn'] {

.inactiveButton {
background-color: transparent;
color: var(--bs-emphasis-color, #000);
color: var(--bs-emphasis-color, var(--black-color));

&:hover {
background-color: var(--grey-bg-color);
Expand Down Expand Up @@ -5938,3 +5938,72 @@ button[data-testid='createPostBtn'] {
margin-left: 13vw;
max-width: 80vw;
}

.btnsContainer .input {
width: 70%;
}

.btnsContainer .inputContainer button {
width: 52px;
}

.largeBtnsWrapper {
display: flex;
}

.listBox {
width: 100%;
flex: 1;
}

@media (max-width: 1020px) {
.btnsContainer {
flex-direction: column;
margin: 1.5rem 0;
}

.btnsContainer .input {
width: 100%;
}

.btnsContainer .btnsBlock {
margin: 1.5rem 0 0 0;
justify-content: space-between;
}

.btnsContainer .btnsBlock button {
margin: 0;
}

.btnsContainer .btnsBlock div button {
margin-right: 1.5rem;
}
}

/* For mobile devices */

@media (max-width: 520px) {
.btnsContainer {
margin-bottom: 0;
}

.btnsContainer .btnsBlock {
display: block;
margin-top: 1rem;
margin-right: 0;
}

.largeBtnsWrapper {
flex-direction: column;
}

.btnsContainer .btnsBlock div {
flex: 1;
}

.btnsContainer .btnsBlock button {
margin-bottom: 1rem;
margin-right: 0;
width: 100%;
}
}
Loading