-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): Forked svelte-select to fix overflow issues using a po… (
#1778) * fix(frontend): Forked svelte-select to fix overflow issues using a portal * fix(frontend): fix event bubble * fix(frontend): fix build * fix(frontend): Remove uncessary support for multiple values * fix(frontend): conditional portal * fix(frontend): conditional portal * fix(frontend): fix resourcepicker * fix(frontend): AppMultiSelect fix * fix(frontend): fix build * fix(frontend): AppMultiSelect fix
- Loading branch information
1 parent
83e0f9b
commit bd481ad
Showing
15 changed files
with
1,491 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
frontend/src/lib/components/apps/components/inputs/AppSelect.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
18 changes: 18 additions & 0 deletions
18
frontend/src/lib/components/apps/svelte-select/lib/ChevronIcon.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,18 @@ | ||
<svg width="100%" height="100%" viewBox="0 0 20 20" focusable="false" aria-hidden="true"> | ||
<path | ||
fill="currentColor" | ||
d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 | ||
3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 | ||
1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 | ||
0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 | ||
0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" | ||
/> | ||
</svg> | ||
|
||
<style> | ||
svg { | ||
width: var(--chevron-icon-width, 20px); | ||
height: var(--chevron-icon-width, 20px); | ||
color: var(--chevron-icon-colour, currentColor); | ||
} | ||
</style> |
22 changes: 22 additions & 0 deletions
22
frontend/src/lib/components/apps/svelte-select/lib/ClearIcon.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,22 @@ | ||
<svg | ||
width="100%" | ||
height="100%" | ||
viewBox="-2 -2 50 50" | ||
focusable="false" | ||
aria-hidden="true" | ||
role="presentation" | ||
> | ||
<path | ||
fill="currentColor" | ||
d="M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 | ||
l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z" | ||
/> | ||
</svg> | ||
|
||
<style> | ||
svg { | ||
width: var(--clear-icon-width, 20px); | ||
height: var(--clear-icon-width, 20px); | ||
color: var(--clear-icon-color, currentColor); | ||
} | ||
</style> |
11 changes: 11 additions & 0 deletions
11
frontend/src/lib/components/apps/svelte-select/lib/ConditionalPortal.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,11 @@ | ||
<script lang="ts"> | ||
import Portal from 'svelte-portal' | ||
export let condition = false | ||
</script> | ||
|
||
{#if condition} | ||
<Portal><slot /></Portal> | ||
{:else} | ||
<slot /> | ||
{/if} |
Oops, something went wrong.