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;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
@ -39,9 +45,6 @@
/* Close button adjustments for mobile */
.close-btn {
position: absolute;
top: 10px;
right: 15px;
background-color: #dc3545;
color: #fff;
border: none;
@ -51,6 +54,17 @@
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 */
.section {
margin-bottom: 20px;

View File

@ -87,7 +87,12 @@ function PopoutPanel({
return (
<div className="popout-panel">
<button onClick={handleClosePanel}>Close</button>
{/* Header with Close & Plan My Path Buttons */}
<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 */}