Skip to content

Commit 334b019

Browse files
overlays on top of job listing not whole viewport
1 parent 04a9273 commit 334b019

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

apps/redi-talent-pool/src/pages/app/job-listing/JobListing.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,18 @@
235235
}
236236

237237
.expired-job-listing-overlay {
238-
position: fixed;
238+
position: absolute;
239239
top: 0;
240240
left: 0;
241241
right: 0;
242242
bottom: 0;
243243
background: rgba(255, 255, 255, 0.9);
244244
backdrop-filter: blur(4px);
245245
display: flex;
246-
align-items: center;
246+
align-items: flex-start;
247247
justify-content: center;
248248
z-index: 1000;
249+
padding-top: 200px;
249250
}
250251

251252
.expired-job-listing-message {
@@ -255,6 +256,7 @@
255256
background: white;
256257
border-radius: 8px;
257258
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
259+
margin: 0 1rem;
258260

259261
p {
260262
font-size: 1.1rem;

apps/redi-talent-pool/src/pages/app/job-listing/JobListing.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export function JobListing() {
261261

262262
return (
263263
<LoggedIn>
264-
<div className="jobListing">
264+
<div className="jobListing" style={{ position: 'relative' }}>
265265
{isDesktop ? (
266266
<>
267267
<JobListingHeader jobListing={jobListing} />
@@ -282,7 +282,6 @@ export function JobListing() {
282282
<JobListingContact jobListing={jobListing} />
283283
</div>
284284
</div>
285-
{isExpired && <ExpiredJobListingOverlay />}
286285
</>
287286
) : (
288287
<>
@@ -294,9 +293,9 @@ export function JobListing() {
294293
<JobListingAboutTheCompany jobListing={jobListing} />
295294
<JobListingContact jobListing={jobListing} />
296295
</div>
297-
{isExpired && <ExpiredJobListingOverlay />}
298296
</>
299297
)}
298+
{isExpired && <ExpiredJobListingOverlay />}
300299
</div>
301300
</LoggedIn>
302301
)

0 commit comments

Comments
 (0)