mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
[CL-794] Fix cutoff content on smaller screens (#15644)
* Fix cutoff content on smaller screens * Fix overlay issue by moving outside main
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
[id]="mainContentId"
|
[id]="mainContentId"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
bitScrollLayoutHost
|
bitScrollLayoutHost
|
||||||
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"
|
class="tw-overflow-auto tw-max-h-screen tw-min-w-0 tw-flex-1 tw-bg-background tw-p-8 tw-pt-6"
|
||||||
>
|
>
|
||||||
<!-- ^ If updating this padding, also update the padding correction in bit-banner! ^ -->
|
<!-- ^ If updating this padding, also update the padding correction in bit-banner! ^ -->
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
|
</main>
|
||||||
<!-- overlay backdrop for side-nav -->
|
<!-- overlay backdrop for side-nav -->
|
||||||
@if (
|
@if (
|
||||||
{
|
{
|
||||||
@@ -40,14 +40,10 @@
|
|||||||
[ngClass]="[data.open ? 'tw-bg-opacity-30 md:tw-bg-opacity-0' : 'tw-bg-opacity-0']"
|
[ngClass]="[data.open ? 'tw-bg-opacity-30 md:tw-bg-opacity-0' : 'tw-bg-opacity-0']"
|
||||||
>
|
>
|
||||||
@if (data.open) {
|
@if (data.open) {
|
||||||
<div
|
<div (click)="sideNavService.toggle()" class="tw-pointer-events-auto tw-size-full"></div>
|
||||||
(click)="sideNavService.toggle()"
|
|
||||||
class="tw-pointer-events-auto tw-size-full"
|
|
||||||
></div>
|
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</main>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-absolute tw-z-50 tw-left-0 md:tw-sticky tw-top-0 tw-h-screen md:tw-w-auto">
|
<div class="tw-absolute tw-z-50 tw-left-0 md:tw-sticky tw-top-0 tw-h-screen md:tw-w-auto">
|
||||||
<ng-template [cdkPortalOutlet]="drawerPortal()"></ng-template>
|
<ng-template [cdkPortalOutlet]="drawerPortal()"></ng-template>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
) {
|
) {
|
||||||
<nav
|
<nav
|
||||||
id="bit-side-nav"
|
id="bit-side-nav"
|
||||||
class="tw-fixed md:tw-sticky tw-inset-y-0 tw-left-0 tw-z-30 tw-flex tw-h-screen tw-flex-col tw-overscroll-none tw-overflow-auto tw-bg-background-alt3 tw-outline-none"
|
class="tw-sticky tw-inset-y-0 tw-left-0 tw-z-30 tw-flex tw-h-screen tw-flex-col tw-overscroll-none tw-overflow-auto tw-bg-background-alt3 tw-outline-none"
|
||||||
[ngClass]="{ 'tw-w-60': data.open }"
|
[ngClass]="{ 'tw-w-60': data.open }"
|
||||||
[ngStyle]="
|
[ngStyle]="
|
||||||
variant() === 'secondary' && {
|
variant() === 'secondary' && {
|
||||||
|
|||||||
Reference in New Issue
Block a user