Skip to content

Commit 0acc11b

Browse files
authored
Preventing Overflow of images in Advertisement and Venue Post modals (#3204)
1 parent 3d423b8 commit 0acc11b

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

src/style/app.module.css

+32-3
Original file line numberDiff line numberDiff line change
@@ -4629,26 +4629,39 @@ button[data-testid='createPostBtn'] {
46294629
display: flex;
46304630
position: relative;
46314631
width: 100%;
4632-
margin-top: 10px;
4632+
overflow: hidden; /* Ensures content doesn't overflow the card */
46334633
justify-content: center;
4634+
border: 1px solid #ccc;
46344635
}
46354636

46364637
.previewVenueModal img {
46374638
width: 400px;
46384639
height: auto;
4640+
object-fit: cover; /* Ensures the image stays within the boundaries */
46394641
}
46404642

46414643
.closeButtonP {
46424644
position: absolute;
46434645
top: 0px;
46444646
right: 0px;
4647+
width: 32px; /* Make the button circular */
4648+
height: 32px; /* Make the button circular */
46454649
background: transparent;
46464650
transform: scale(1.2);
46474651
cursor: pointer;
4652+
border-radius: 50%;
46484653
border: none;
46494654
color: var(--grey-dark);
46504655
font-weight: 600;
46514656
font-size: 16px;
4657+
transition:
4658+
background-color 0.3s,
4659+
transform 0.3s;
4660+
}
4661+
4662+
.closeButtonP:hover {
4663+
transform: scale(1.1); /* Slightly enlarge on hover */
4664+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
46524665
}
46534666

46544667
/* YearlyEventCalender.tsx */
@@ -5084,12 +5097,15 @@ button[data-testid='createPostBtn'] {
50845097
position: relative;
50855098
width: 100%;
50865099
margin-top: 10px;
5100+
overflow: hidden; /* Ensures content doesn't overflow the card */
50875101
justify-content: center;
5102+
border: 1px solid #ccc;
50885103
}
50895104

50905105
.previewAdvertisementRegister img {
50915106
width: 400px;
50925107
height: auto;
5108+
object-fit: cover; /* Ensures the image stays within the boundaries */
50935109
}
50945110

50955111
.previewAdvertisementRegister video {
@@ -5098,14 +5114,27 @@ button[data-testid='createPostBtn'] {
50985114
}
50995115

51005116
.closeButtonAdvertisementRegister {
5117+
position: absolute;
5118+
top: 0px;
5119+
right: 0px;
5120+
width: 32px; /* Make the button circular */
5121+
height: 32px; /* Make the button circular */
51015122
background: transparent;
5123+
transform: scale(1.2);
51025124
cursor: pointer;
5125+
border-radius: 50%;
51035126
border: none;
51045127
color: var(--grey-dark);
51055128
font-weight: 600;
51065129
font-size: 16px;
5107-
margin-bottom: 10px;
5108-
cursor: pointer;
5130+
transition:
5131+
background-color 0.3s,
5132+
transform 0.3s;
5133+
}
5134+
5135+
.closeButtonAdvertisementRegister:hover {
5136+
transform: scale(1.1); /* Slightly enlarge on hover */
5137+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
51095138
}
51105139

51115140
.buttonAdvertisementRegister {

0 commit comments

Comments
 (0)