Move project renaming from the project view to configuration
- ProjectView: title is now a plain <h1>, no longer inline-editable (dropped titleDraft/saveTitle/patchProject and the input markup -- nothing else used patchProject). - ProjectConfigureView: new 'Project name' section above 'Statuses', a small PATCH /api/projects/:id form. On success it also calls the projects store's fetchProjects(), since the dashboard grid and the sidebar's project dropdown read from that store and otherwise wouldn't pick up the new name (or the project's new alphabetical position) until some unrelated reload. - style.css: dropped the now-dead .project-head__title input rules (both views render a plain heading now); .project-head__title gains word-break so a long static title still wraps instead of overflowing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+1
-21
@@ -575,27 +575,7 @@ h1 {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.project-head__title input {
|
||||
width: 100%;
|
||||
font: inherit;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
padding: 0.25rem 0.4rem;
|
||||
}
|
||||
|
||||
.project-head__title input:hover {
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
.project-head__title input:focus {
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.project-head__actions {
|
||||
|
||||
Reference in New Issue
Block a user