Move rename pencil next to title and support 3-column grid on wide screens
This commit is contained in:
parent
554072e9dd
commit
710b32191a
@ -407,12 +407,12 @@ function render() {
|
||||
projectContainer.style = `--project-color: ${project.color}`;
|
||||
projectContainer.innerHTML = `
|
||||
<div class="project-header">
|
||||
<div class="project-title-group" onclick="toggleProjectCollapse(${project.id})">
|
||||
<button class="btn-toggle-project">▼</button>
|
||||
<div class="project-title-group">
|
||||
<button class="btn-toggle-project" onclick="toggleProjectCollapse(${project.id})">▼</button>
|
||||
<span class="project-title">${project.name}</span>
|
||||
<button class="btn-rename-project" onclick="renameProject(${project.id})" title="Rename project"><span class="icon-pencil">✎</span></button>
|
||||
</div>
|
||||
<div class="project-actions">
|
||||
<button class="btn-rename-project" onclick="renameProject(${project.id})" title="Rename project"><span class="icon-pencil">✎</span></button>
|
||||
<button class="btn-add-part" onclick="openModal('addPart', ${project.id})">+ Part</button>
|
||||
<button class="btn-delete-project" onclick="deleteProject(${project.id})">×</button>
|
||||
</div>
|
||||
|
||||
@ -133,6 +133,12 @@ h1 {
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.projects-grid {
|
||||
grid-template-columns: repeat(3, minmax(320px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
/* --- PROJECT CONTAINER --- */
|
||||
.project-container {
|
||||
background: var(--card-bg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user