1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

move above-scroll-area padding to popup-page

This commit is contained in:
William Martin
2024-11-12 16:27:32 -05:00
parent 0b6eb38ded
commit 289ac316eb
4 changed files with 6 additions and 10 deletions

View File

@@ -117,11 +117,7 @@ class MockCurrentAccountComponent {}
@Component({
selector: "mock-search",
template: `
<div class="tw-p-4">
<bit-search placeholder="Search"> </bit-search>
</div>
`,
template: ` <bit-search placeholder="Search"> </bit-search> `,
standalone: true,
imports: [SearchModule],
})

View File

@@ -2,9 +2,9 @@
<main class="tw-flex-1 tw-overflow-hidden tw-flex tw-flex-col tw-relative tw-bg-background-alt">
<div
#nonScrollable
class="tw-transition-colors tw-duration-200 tw-border-0 tw-border-b tw-border-solid"
class="tw-transition-colors tw-duration-200 tw-border-0 tw-border-b tw-border-solid tw-p-3 bit-compact:tw-p-2"
[ngClass]="{
'tw-invisible': loading || nonScrollable.childElementCount === 0,
'tw-invisible !tw-p-0': loading || nonScrollable.childElementCount === 0,
'tw-border-secondary-300': scrolled(),
'tw-border-transparent': !scrolled(),
}"

View File

@@ -6,7 +6,7 @@
<app-current-account></app-current-account>
</ng-container>
</popup-header>
<div slot="above-scroll-area" class="tw-p-4">
<div slot="above-scroll-area">
<bit-callout *ngIf="sendsDisabled" [title]="'sendDisabled' | i18n">
{{ "sendDisabledWarning" | i18n }}
</bit-callout>

View File

@@ -23,10 +23,10 @@
</div>
<!-- Show search & filters outside of the scroll area of the page -->
<div slot="above-scroll-area" class="tw-p-4" *ngIf="vaultState !== VaultStateEnum.Empty">
<ng-container slot="above-scroll-area" *ngIf="vaultState !== VaultStateEnum.Empty">
<app-vault-v2-search> </app-vault-v2-search>
<app-vault-list-filters></app-vault-list-filters>
</div>
</ng-container>
<ng-container *ngIf="vaultState !== VaultStateEnum.Empty">
<div