Skip to content

Commit

Permalink
Put BranchFilesHeader into BranchFilesList
Browse files Browse the repository at this point in the history
- removed it when refactoring file selection
- realized it is necessary even without tree view
  • Loading branch information
mtsgrd committed Apr 3, 2024
1 parent 55ed8dc commit 1cf360c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gitbutler-ui/src/lib/components/BranchFilesList.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import BranchFilesHeader from './BranchFilesHeader.svelte';
import FileListItem from './FileListItem.svelte';
import { maybeMoveSelection } from '$lib/utils/selection';
import { getCommitStore, getSelectedFileIds } from '$lib/vbranches/contexts';
Expand All @@ -18,6 +19,9 @@
$: sortedFiles = sortLikeFileTree(files);
</script>

<div class="branch-files__header">
<BranchFilesHeader {files} {showCheckboxes} />
</div>
{#each sortedFiles as file (file.id)}
<FileListItem
{file}
Expand All @@ -44,3 +48,12 @@
}}
/>
{/each}

<style lang="postcss">
.branch-files__header {
padding-top: var(--size-14);
padding-bottom: var(--size-12);
padding-left: var(--size-14);
padding-right: var(--size-14);
}
</style>

0 comments on commit 1cf360c

Please sign in to comment.