-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: strip files list after 500 entries in source control view
- Loading branch information
Showing
3 changed files
with
48 additions
and
24 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/ui/sourceControl/components/tooManyFilesComponent.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts"> | ||
export let files: unknown[]; | ||
</script> | ||
|
||
<!-- svelte-ignore a11y-click-events-have-key-events --> | ||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions --> | ||
<main> | ||
{#if files.length > 500} | ||
<div class="tree-item nav-file"> | ||
<div | ||
class="tree-item-self nav-file-title" | ||
aria-label={"And " + (files.length - 500) + " more files"} | ||
> | ||
<div class="tree-item-inner nav-file-title-content"> | ||
{"And " + (files.length - 500) + " more files"} | ||
</div> | ||
</div> | ||
</div> | ||
{/if} | ||
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters