mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[Cl-726] layout spacing updates (#15979)
This commit is contained in:
@@ -27,6 +27,11 @@ const defaultIcon: Record<BannerType, string> = {
|
||||
selector: "bit-banner",
|
||||
templateUrl: "./banner.component.html",
|
||||
imports: [CommonModule, IconButtonModule, I18nPipe],
|
||||
host: {
|
||||
// Account for bit-layout's padding
|
||||
class:
|
||||
"tw-flex tw-flex-col [bit-layout_&]:-tw-mx-8 [bit-layout_&]:-tw-my-6 [bit-layout_&]:tw-pb-6",
|
||||
},
|
||||
})
|
||||
export class BannerComponent implements OnInit {
|
||||
readonly bannerType = input<BannerType>("info");
|
||||
|
||||
@@ -23,8 +23,9 @@
|
||||
[id]="mainContentId"
|
||||
tabindex="-1"
|
||||
bitScrollLayoutHost
|
||||
class="tw-overflow-auto tw-max-h-screen tw-min-w-0 tw-flex-1 tw-bg-background tw-p-6 md:tw-ms-0 tw-ms-16"
|
||||
class="tw-overflow-auto tw-max-h-screen tw-min-w-0 tw-flex-1 tw-bg-background tw-p-8 tw-pt-6 md:tw-ms-0 tw-ms-16"
|
||||
>
|
||||
<!-- ^ If updating this padding, also update the padding correction in bit-banner! ^ -->
|
||||
<ng-content></ng-content>
|
||||
|
||||
<!-- overlay backdrop for side-nav -->
|
||||
|
||||
@@ -89,9 +89,7 @@ class KitchenSinkDialog {
|
||||
selector: "bit-tab-main",
|
||||
imports: [KitchenSinkSharedModule, KitchenSinkTable, KitchenSinkToggleList, KitchenSinkForm],
|
||||
template: `
|
||||
<bit-banner bannerType="info" class="-tw-m-6 tw-flex tw-flex-col tw-pb-6">
|
||||
Kitchen Sink test zone
|
||||
</bit-banner>
|
||||
<bit-banner bannerType="info"> Kitchen Sink test zone </bit-banner>
|
||||
|
||||
<p class="tw-mt-4">
|
||||
<bit-breadcrumbs>
|
||||
|
||||
Reference in New Issue
Block a user