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()"
|
(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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user