mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[CL-871] responsive sidebar product switcher (#17780)
* only make switcher sticky when height is larger than 850 * use rem based value for media query * add comment about why 53rem was chosen
This commit is contained in:
@@ -23,7 +23,11 @@
|
|||||||
(keydown)="handleKeyDown($event)"
|
(keydown)="handleKeyDown($event)"
|
||||||
>
|
>
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
<div class="tw-sticky tw-bottom-0 tw-left-0 tw-z-20 tw-mt-auto tw-w-full tw-bg-background-alt3">
|
<!-- 53rem = ~850px -->
|
||||||
|
<!-- This is a magic number. This number was selected by going to the UI and finding the number that felt the best to me and design. No real rhyme or reason :) -->
|
||||||
|
<div
|
||||||
|
class="[@media(min-height:53rem)]:tw-sticky tw-bottom-0 tw-left-0 tw-z-20 tw-mt-auto tw-w-full tw-bg-background-alt3"
|
||||||
|
>
|
||||||
<bit-nav-divider></bit-nav-divider>
|
<bit-nav-divider></bit-nav-divider>
|
||||||
@if (data.open) {
|
@if (data.open) {
|
||||||
<ng-content select="[slot=footer]"></ng-content>
|
<ng-content select="[slot=footer]"></ng-content>
|
||||||
|
|||||||
Reference in New Issue
Block a user