1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +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()" (onRefresh)="refreshCurrentTab()"
[description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null" [description]="(showEmptyAutofillTip$ | async) ? ('autofillSuggestionsTip' | i18n) : null"
showAutofillButton showAutofillButton
[disableDescriptionMargin]="showEmptyAutofillTip$ | async"
[primaryActionAutofill]="clickItemsToAutofillVaultView" [primaryActionAutofill]="clickItemsToAutofillVaultView"
[groupByType]="groupByType()" [groupByType]="groupByType()"
></app-vault-list-items-container> ></app-vault-list-items-container>

View File

@@ -70,7 +70,12 @@
</ng-template> </ng-template>
<ng-template #descriptionText> <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 }} {{ description }}
</div> </div>
</ng-template> </ng-template>

View File

@@ -245,6 +245,12 @@ export class VaultListItemsContainerComponent implements OnInit, AfterViewInit {
@Input({ transform: booleanAttribute }) @Input({ transform: booleanAttribute })
disableSectionMargin: boolean = false; 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. * The tooltip text for the organization icon for ciphers that belong to an organization.
* @param cipher * @param cipher