-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CL-285] Add default loading state to popup-page (#10040)
- Loading branch information
Showing
5 changed files
with
67 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3628,5 +3628,8 @@ | |
}, | ||
"addAccount": { | ||
"message": "Add account" | ||
}, | ||
"loading": { | ||
"message": "Loading" | ||
} | ||
} |
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
13 changes: 11 additions & 2 deletions
13
apps/browser/src/platform/popup/layout/popup-page.component.html
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,16 @@ | ||
<ng-content select="[slot=header]"></ng-content> | ||
<main class="tw-bg-background-alt tw-flex-1 tw-overflow-y-auto tw-h-full"> | ||
<div class="tw-max-w-screen-sm tw-mx-auto tw-p-3 tw-overflow-y-auto tw-h-full"> | ||
<main class="tw-flex-1 tw-overflow-y-auto tw-h-full tw-relative tw-bg-background-alt"> | ||
<div | ||
class="tw-max-w-screen-sm tw-mx-auto tw-p-3 tw-overflow-y-auto tw-h-full" | ||
[ngClass]="{ 'tw-invisible': loading }" | ||
> | ||
<ng-content></ng-content> | ||
</div> | ||
<span | ||
class="tw-absolute tw-inset-0 tw-flex tw-items-center tw-justify-center tw-text-main" | ||
[ngClass]="{ 'tw-invisible': !loading }" | ||
> | ||
<i class="bwi bwi-spinner bwi-lg bwi-spin" [attr.aria-label]="loadingText"></i> | ||
</span> | ||
</main> | ||
<ng-content select="[slot=footer]"></ng-content> |
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