diff --git a/src/webviews/apps/commitDetails/commitDetails.ts b/src/webviews/apps/commitDetails/commitDetails.ts index 38b313b..4b19ebf 100644 --- a/src/webviews/apps/commitDetails/commitDetails.ts +++ b/src/webviews/apps/commitDetails/commitDetails.ts @@ -336,8 +336,8 @@ export class CommitDetailsApp extends App> { const $toggle = document.querySelector('[data-switch-value]'); if ($toggle) { $toggle.setAttribute('data-switch-value', isTree ? 'list-tree' : 'list'); - $toggle.setAttribute('icon', isTree ? 'list-tree' : 'list-flat'); - $toggle.setAttribute('label', isTree ? 'View as Tree' : 'View as List'); + $toggle.setAttribute('icon', isTree ? 'list-flat' : 'list-tree'); + $toggle.setAttribute('label', isTree ? 'View as List' : 'View as Tree'); } if (!state.selected.files?.length) {