Added Plan My Path button and moved Close to upper-left of popoutpanel

This commit is contained in:
Josh 2025-03-18 12:25:50 +00:00
parent 9a1871d4f5
commit 88842b5946
2 changed files with 24 additions and 5 deletions

View File

@ -22,6 +22,12 @@
display: block; display: block;
} }
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
/* Mobile responsiveness */ /* Mobile responsiveness */
@media (max-width: 768px) { @media (max-width: 768px) {
@ -39,9 +45,6 @@
/* Close button adjustments for mobile */ /* Close button adjustments for mobile */
.close-btn { .close-btn {
position: absolute;
top: 10px;
right: 15px;
background-color: #dc3545; background-color: #dc3545;
color: #fff; color: #fff;
border: none; border: none;
@ -51,6 +54,17 @@
z-index: 1001; /* Keep button above the panel */ z-index: 1001; /* Keep button above the panel */
} }
.plan-path-btn {
background-color: #4A90E2;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
text-align: center;
}
/* Job Description and Expected Tasks section */ /* Job Description and Expected Tasks section */
.section { .section {
margin-bottom: 20px; margin-bottom: 20px;

View File

@ -87,9 +87,14 @@ function PopoutPanel({
return ( return (
<div className="popout-panel"> <div className="popout-panel">
<button onClick={handleClosePanel}>Close</button> {/* Header with Close & Plan My Path Buttons */}
<h2>{title}</h2> <div className="panel-header">
<button className="close-btn" onClick={closePanel}>X</button>
<button className="plan-path-btn">Plan My Path</button>
</div>
<h2>{title}</h2>
{/* Job Description and Tasks */} {/* Job Description and Tasks */}
<div className="job-description"> <div className="job-description">
<h3>Job Description</h3> <h3>Job Description</h3>