Skip to content

Commit

Permalink
πŸ€ Refactoring dashboard contact us component (#951)
Browse files Browse the repository at this point in the history
* Contact Us Card Problem Solve !

* align item to center

* Update Contact.jsx

* Update Contact.jsx
  • Loading branch information
sarthu210 authored May 25, 2024
1 parent f0a7bd7 commit 06f3d47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,10 @@
.button-delete:hover {
background-color: #fc3779;
}

@media (max-width: 441px) {
.card-item {
width: 70vw;
margin: 0.5em 1em 1em 1.5em;
}
}
4 changes: 2 additions & 2 deletions frontend/src/pages/Admin/Components/Contact/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export function Contact() {
<h1 style={{ textAlign: "center" }}> Contact Us </h1>
{isLoaded ? <div className={style["data-loader"]}><Loader /></div>:
<div className={style["card-container"]}>
<Grid container spacing={2}>
<Grid item>
<Grid container spacing={2} >
<Grid item container alignItems="center" justifyContent="center">
{contactUsData &&
contactUsData.map((data) => {
return <Card key={data._id} id={data._id} handleDelete={handleDelete} content={data} />;
Expand Down

0 comments on commit 06f3d47

Please sign in to comment.