-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): Add missing loading state for non-runnable components … (
#3797) * fix(frontend): Add missing loading state for non-runnable components + fix select and aggrid styling * fix(frontend): remove log * fix(frontend): improve code * fix(frontend): improve code * fix(frontend): Fix refreshIndicator styling
- Loading branch information
1 parent
001278c
commit a0acdc1
Showing
7 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
frontend/src/lib/components/apps/components/helpers/RefreshIndicator.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,21 @@ | ||
<script lang="ts"> | ||
import { LoaderIcon } from 'lucide-svelte' | ||
import Popover from '$lib/components/Popover.svelte' | ||
export let loading: boolean | ||
</script> | ||
|
||
{#if loading} | ||
<Popover> | ||
<div class={'bg-blue-100 dark:bg-blue-400 transition-all p-1 rounded-component'}> | ||
<LoaderIcon size={14} class="animate-spin text-blue-800 dark:text-white" /> | ||
</div> | ||
<svelte:fragment slot="text"> | ||
{#if loading} | ||
Refreshing... | ||
{:else} | ||
Refresh | ||
{/if} | ||
</svelte:fragment> | ||
</Popover> | ||
{/if} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export const SELECT_INPUT_DEFAULT_STYLE = { | ||
inputStyles: 'border-radius: 0;', | ||
containerStyles: | ||
'--height: 34px; --padding: 0 0 0 8px; --font-size: 0.875rem; --border: 1px solid #d1d5db;', | ||
containerStyles: '--height: 34px; --padding: 0 0 0 8px; --font-size: 0.875rem;', | ||
containerStylesDark: | ||
'--height: 34px; --padding: 0 0 0 8px; --font-size: 0.875rem; --border: 1px solid #374151; --background: #3b4252; --disabled-background: #2a2f3a; --list-background: #3b4252;--item-is-active-bg:#434c5e;--item-hover-bg:#4c566a;' | ||
'--height: 34px; --padding: 0 0 0 8px; --font-size: 0.875rem; --background: #3b4252; --disabled-background: #2a2f3a; --list-background: #3b4252;--item-is-active-bg:#434c5e;--item-hover-bg:#4c566a;' | ||
} as const |