Remove recipe/post toggle — auto-detect type from category selection

When user selects Reseptit category, recipe fields (time, servings,
ingredients, steps) appear automatically. All other categories show
the post body field instead. Removed the manual toggle buttons and
cleaned up related CSS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 09:33:22 +02:00
parent 844e5c338b
commit 7bb5924cf6
3 changed files with 4 additions and 36 deletions

View File

@@ -472,32 +472,6 @@ footer {
gap: 12px;
}
.type-toggle {
display: flex;
gap: 10px;
margin-bottom: 14px;
}
.type-btn {
flex: 1;
padding: 10px;
border: 2px solid var(--border);
border-radius: 8px;
background: #fff;
color: var(--text-light);
font-family: 'Arial', sans-serif;
font-size: 0.88rem;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.type-btn.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.submit-btn {
width: 100%;