Skip to content

Commit c2b5d7f

Browse files
authored
Merge pull request #122 from keyxmakerx/claude/fix-backdrop-customizer-uAn3g
fix: add reorg button to sidebar drill panel + fix grid view icon
2 parents 711a1ca + c8949c4 commit c2b5d7f

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

internal/plugins/entities/category_dashboard.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ templ defaultCategoryDashboard(cc *campaigns.CampaignContext, et *EntityType, en
144144
class="px-2 py-1 rounded text-xs font-medium"
145145
title="Grid view"
146146
>
147-
<i class="fa-solid fa-grid-2 text-[11px]"></i>
147+
<i class="fa-solid fa-table-cells text-[11px]"></i>
148148
</button>
149149
<button
150150
@click="view = 'table'"

internal/plugins/entities/index.templ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ templ EntityListContent(cc *campaigns.CampaignContext, entities []Entity, entity
6868
class="px-2 py-1 rounded text-xs font-medium"
6969
title="Grid view"
7070
>
71-
<i class="fa-solid fa-grid-2 text-[11px]"></i>
71+
<i class="fa-solid fa-table-cells text-[11px]"></i>
7272
</button>
7373
<button
7474
@click="view = 'table'"

internal/templates/layouts/app.templ

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,17 @@ templ SidebarDrillPanel(campaignID string, et SidebarEntityType, count int) {
659659
>{ strconv.Itoa(count) }</span>
660660
}
661661
</a>
662+
<!-- Reorg toggle for owners (delegates to main sidebar-reorg-toggle) -->
663+
if GetCampaignRole(ctx) >= 3 {
664+
<button
665+
type="button"
666+
class="w-5 h-5 flex items-center justify-center rounded text-gray-500 hover:text-gray-300 hover:bg-white/10 transition-colors shrink-0"
667+
title="Reorder pages"
668+
onclick="var t=document.getElementById('sidebar-reorg-toggle');if(t)t.click();"
669+
>
670+
<i class="fa-solid fa-grip-vertical text-[10px]"></i>
671+
</button>
672+
}
662673
<!-- New entity button -->
663674
<a
664675
href={ templ.SafeURL(fmt.Sprintf("/campaigns/%s/entities/new", campaignID)) }

0 commit comments

Comments
 (0)