<div className={styles.inputWrap}> <Input mode="primary" placeholder="Folder name"…
- User
.paymentWrap { width: 29.5rem; max-width: 100%; display: flex; justify-content: space-between; background-color: #f6f2fa; border-radius: 1.5rem; padding: 1.2rem; align-items: center; }
.paymentTextWrap { padding-left: 1.5rem; margin-top: 0.3rem; } .paymentText { font-size: 1.7rem; color: #414044; padding-left: 1.5rem; }
.selectPayment { font-size: 1.7rem; color: #b5b8bf; }
.devToolWrap { width: 29.5rem; max-width: 100%; display: flex; justify-content: space-between; background-color: #f6f2fa; border-radius: 1.5rem; padding: 1.2rem; align-items: center; }
.btnSearch { width: 29.5rem; max-width: 100%; display: flex; justify-content: center; border-radius: 1.5rem; }
@media screen and (max-width: 970px) { .paymentWrap { width: 25rem; max-width: 100%; } } @media screen and (max-width: 760px) { .paymentWrap { display: none; } } i have two popup the issue they are not responsive. When I make screen smaller the size of popups should becomes smaller but somehow not becomming smaller because i set width 29.5rem, I want initial width should be 29.5 rem but it becomes smaller when I make screen smaller. How to do it ?
- Assistant
To make the popups responsive, you can use CSS media queries to adjust the width based on the screen size. Instead of setting a fixed width of
29.5rem, you can use a relative unit like percentage ormax-widthto ensure they shrink appropriately on smaller screens.Here's how you can adjust your CSS:
.paymentWrap, .devToolWrap, .btnSearch { width: 100%; /* full width of the container */ max-width: 29.5rem; /* will not exceed this width */ display: flex; justify-content: space-between; background-color: #f6f2fa; border-radius: 1.5rem; padding: 1.2rem; align-items: center; } .paymentTextWrap { padding-left: 1.5rem; margin-top: 0.3rem; } .paymentText { font-size: 1.7rem; color: #414044; padding-left: 1.5rem; } .selectPayment { font-size: 1.7rem; color: #b5b8bf; } @media screen and (max-width: 970px) { .paymentWrap, .devToolWrap, .btnSearch { max-width: 25rem; } } @media screen and (max-width: 760px) { .paymentWrap, .devToolWrap { display: none; } .btnSearch { /* You might want to keep search button visible, adjust as needed */ } } - User
still not responsive, the icon, text and icon from right side not in one line. when i make screen smaller thetext going to second line
- Assistant
- User
import { useState } from "react" import styles from "./build-team.module.css" import { Checkbox } from "../../ui-component/checkbox/checkbox.component.tsx" import { IoPersonCircleOutline } from "react-icons/io5" import { Button } from "../../ui-component/button/button.component.tsx"
- Assistant