1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

revert anon layout changes

This commit is contained in:
William Martin
2025-07-02 10:04:00 -04:00
parent 6e8bec0250
commit 81912cd06a
2 changed files with 11 additions and 38 deletions

View File

@@ -6,7 +6,7 @@
}"
>
<a
*ngIf="!hideLogo()"
*ngIf="!hideLogo"
[routerLink]="['/']"
class="tw-w-[128px] tw-block tw-mb-12 [&>*]:tw-align-top"
>
@@ -14,8 +14,8 @@
</a>
<div class="tw-text-center tw-mb-4 sm:tw-mb-6 tw-mx-auto" [ngClass]="maxWidthClass">
<div *ngIf="!hideIcon()" class="tw-w-24 sm:tw-w-28 md:tw-w-32 tw-mx-auto">
<bit-icon [icon]="icon()"></bit-icon>
<div *ngIf="!hideIcon" class="tw-w-24 sm:tw-w-28 md:tw-w-32 tw-mx-auto">
<bit-icon [icon]="icon"></bit-icon>
</div>
<ng-container *ngIf="title">
@@ -50,11 +50,11 @@
<ng-content select="[slot=secondary]"></ng-content>
</div>
<footer *ngIf="!hideFooter()" class="tw-text-center tw-mt-4 sm:tw-mt-6">
<div *ngIf="showReadonlyHostname()" bitTypography="body2">
<footer *ngIf="!hideFooter" class="tw-text-center tw-mt-4 sm:tw-mt-6">
<div *ngIf="showReadonlyHostname" bitTypography="body2">
{{ "accessing" | i18n }} {{ hostname }}
</div>
<ng-container *ngIf="!showReadonlyHostname()">
<ng-container *ngIf="!showReadonlyHostname">
<ng-content select="[slot=environment-selector]"></ng-content>
</ng-container>
<ng-container *ngIf="!hideYearAndVersion">

View File

@@ -1,15 +1,7 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { CommonModule } from "@angular/common";
import {
Component,
HostBinding,
Input,
OnChanges,
OnInit,
SimpleChanges,
input,
} from "@angular/core";
import { Component, HostBinding, Input, OnChanges, OnInit, SimpleChanges } from "@angular/core";
import { RouterModule } from "@angular/router";
import { firstValueFrom } from "rxjs";
@@ -36,17 +28,13 @@ export class AnonLayoutComponent implements OnInit, OnChanges {
return ["tw-h-full"];
}
// TODO: Skipped for migration because:
// This input is used in a control flow expression (e.g. `@if` or `*ngIf`)
// and migrating would break narrowing currently.
@Input() title: string;
// TODO: Skipped for migration because:
// This input is used in a control flow expression (e.g. `@if` or `*ngIf`)
// and migrating would break narrowing currently.
@Input() subtitle: string;
// TODO: Skipped for migration because:
// Your application code writes to the input. This prevents migration.
@Input() icon: Icon;
@Input() showReadonlyHostname: boolean;
@Input() hideLogo: boolean = false;
@Input() hideFooter: boolean = false;
@Input() hideIcon: boolean = false;
@Input() hideCardWrapper: boolean = false;
/**
@@ -54,22 +42,7 @@ export class AnonLayoutComponent implements OnInit, OnChanges {
*
* @default 'md'
*/
// TODO: Skipped for migration because:
// Your application code writes to the input. This prevents migration.
@Input() maxWidth: AnonLayoutMaxWidth = "md";
readonly showReadonlyHostname = input<boolean>(undefined);
readonly hideLogo = input<boolean>(false);
readonly hideFooter = input<boolean>(false);
readonly hideIcon = input<boolean>(false);
/**
* Max width of the title area content
*
* @default null
*/
// TODO: Skipped for migration because:
// Your application code writes to the input. This prevents migration.
@Input() titleAreaMaxWidth?: "md";
protected logo = BitwardenLogo;
protected year: string;