adjust layout and add detials button

This commit is contained in:
Robin Olsen
2026-02-25 12:39:21 +01:00
parent 1438d0e567
commit 6264f9dfc9
10 changed files with 101 additions and 169 deletions

View File

@@ -11,7 +11,7 @@ type IssueDetailProps struct {
}
templ IssueDetailContent(props IssueDetailProps) {
<div class="p-2">
<div class="max-w-2xl mx-auto">
<div class="mb-4">
<a
class="btn btn-ghost btn-sm"
@@ -22,14 +22,6 @@ templ IssueDetailContent(props IssueDetailProps) {
@components.IconBack()
Back to Issues
</a>
<a
class="btn btn-primary btn-sm"
hx-get={ "/issues/" + props.Issue.ID + "/edit" }
hx-target="#modal-container"
hx-swap="innerHTML"
>
Edit Issue
</a>
</div>
<div id="issue-detail-container" class="mb-6">
@components.IssueDetail(components.IssueDetailProps{Issue: props.Issue})