Skip to content

Commit

Permalink
update anon-layout and extension-anon-layout spacing (#11869)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr-bw authored Nov 13, 2024
1 parent 7ef1d01 commit 204eb31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<popup-page>
<popup-page [disablePadding]="true">
<popup-header
slot="header"
[background]="'alt'"
Expand All @@ -19,7 +19,6 @@
[icon]="pageIcon"
[showReadonlyHostname]="showReadonlyHostname"
[hideLogo]="true"
[decreaseTopPadding]="true"
[maxWidth]="maxWidth"
>
<router-outlet></router-outlet>
Expand Down
17 changes: 9 additions & 8 deletions libs/auth/src/angular/anon-layout/anon-layout.component.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<!-- The calc() reductions are to account for browser/desktop headers -->
<main
class="tw-flex tw-w-full tw-mx-auto tw-flex-col tw-gap-7 tw-bg-background-alt tw-px-8 tw-pb-4 tw-text-main"
class="tw-flex tw-w-full tw-mx-auto tw-flex-col tw-bg-background-alt tw-px-6 tw-pt-6 tw-pb-4 tw-text-main"
[ngClass]="{
'tw-pt-0': decreaseTopPadding,
'tw-pt-8': !decreaseTopPadding,
'tw-min-h-screen': clientType === 'web',
'tw-min-h-full': clientType === 'browser' || clientType === 'desktop',
}"
>
<a *ngIf="!hideLogo" [routerLink]="['/']" class="tw-w-[128px] [&>*]:tw-align-top">
<a
*ngIf="!hideLogo"
[routerLink]="['/']"
class="tw-w-[128px] tw-block tw-mb-12 [&>*]:tw-align-top"
>
<bit-icon [icon]="logo"></bit-icon>
</a>

<div class="tw-text-center">
<div class="tw-text-center tw-mb-6">
<div class="tw-mx-auto tw-max-w-28 sm:tw-max-w-32">
<bit-icon [icon]="icon"></bit-icon>
</div>
Expand All @@ -36,14 +37,14 @@ <h1 bitTypography="h2" class="tw-mt-2 tw-hidden sm:tw-block">
[ngClass]="{ 'tw-max-w-md': maxWidth === 'md', 'tw-max-w-3xl': maxWidth === '3xl' }"
>
<div
class="tw-rounded-2xl tw-mb-9 tw-mx-auto tw-w-full sm:tw-bg-background sm:tw-border sm:tw-border-solid sm:tw-border-secondary-300 sm:tw-p-8"
class="tw-rounded-2xl tw-mb-10 tw-mx-auto tw-w-full sm:tw-bg-background sm:tw-border sm:tw-border-solid sm:tw-border-secondary-300 sm:tw-p-8"
>
<ng-content></ng-content>
</div>
<ng-content select="[slot=secondary]"></ng-content>
</div>

<footer *ngIf="!hideFooter" class="tw-text-center">
<footer *ngIf="!hideFooter" class="tw-text-center tw-mt-6">
<div *ngIf="showReadonlyHostname" bitTypography="body2">
{{ "accessing" | i18n }} {{ hostname }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion libs/auth/src/angular/anon-layout/anon-layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AnonLayoutComponent implements OnInit, OnChanges {
@Input() showReadonlyHostname: boolean;
@Input() hideLogo: boolean = false;
@Input() hideFooter: boolean = false;
@Input() decreaseTopPadding: boolean = false;

/**
* Max width of the layout content
*
Expand Down

0 comments on commit 204eb31

Please sign in to comment.