1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

remove margin on autofill when no items present (#13691)

This commit is contained in:
Jordan Aasen
2025-03-10 11:04:36 -07:00
committed by GitHub
parent beccf1a9d7
commit a30a6ee7fb
3 changed files with 13 additions and 1 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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