mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
remove margin on autofill when no items present (#13691)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
(onRefresh)="refreshCurrentTab()"
|
||||
[description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null"
|
||||
showAutofillButton
|
||||
[disableDescriptionMargin]="showEmptyAutofillTip$ | async"
|
||||
[primaryActionAutofill]="clickItemsToAutofillVaultView"
|
||||
[groupByType]="groupByType()"
|
||||
></app-vault-list-items-container>
|
||||
|
||||
@@ -70,7 +70,12 @@
|
||||
</ng-template>
|
||||
|
||||
<ng-template #descriptionText>
|
||||
<div *ngIf="description" class="tw-text-muted tw-px-1 tw-mb-2" bitTypography="body2">
|
||||
<div
|
||||
*ngIf="description"
|
||||
class="tw-text-muted tw-px-1 tw-mb-2"
|
||||
[ngClass]="{ '!tw-mb-0': disableDescriptionMargin }"
|
||||
bitTypography="body2"
|
||||
>
|
||||
{{ description }}
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
@@ -245,6 +245,12 @@ export class VaultListItemsContainerComponent implements OnInit, AfterViewInit {
|
||||
@Input({ transform: booleanAttribute })
|
||||
disableSectionMargin: boolean = false;
|
||||
|
||||
/**
|
||||
* Remove the description margin
|
||||
*/
|
||||
@Input({ transform: booleanAttribute })
|
||||
disableDescriptionMargin: boolean = false;
|
||||
|
||||
/**
|
||||
* The tooltip text for the organization icon for ciphers that belong to an organization.
|
||||
* @param cipher
|
||||
|
||||
Reference in New Issue
Block a user