BottomSheet: fix bottomUp position on mobile
This commit is contained in:
		
							parent
							
								
									599d735665
								
							
						
					
					
						commit
						fea645949f
					
				
					 2 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -60,5 +60,13 @@
 | 
			
		|||
    top: unset;
 | 
			
		||||
    transform: translateX(-50%);
 | 
			
		||||
    bottom: 0;
 | 
			
		||||
 | 
			
		||||
    @media (max-width: 560px) {
 | 
			
		||||
      & {
 | 
			
		||||
        transform: none;
 | 
			
		||||
        height: unset;
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,19 +1,14 @@
 | 
			
		|||
import {
 | 
			
		||||
  children,
 | 
			
		||||
  createEffect,
 | 
			
		||||
  createRenderEffect,
 | 
			
		||||
  createSignal,
 | 
			
		||||
  onCleanup,
 | 
			
		||||
  onMount,
 | 
			
		||||
  startTransition,
 | 
			
		||||
  useTransition,
 | 
			
		||||
  type ChildrenReturn,
 | 
			
		||||
  type ParentComponent,
 | 
			
		||||
  type ResolvedChildren,
 | 
			
		||||
} from "solid-js";
 | 
			
		||||
import styles from "./BottomSheet.module.css";
 | 
			
		||||
import { useHeroSignal } from "../platform/anim";
 | 
			
		||||
import { makeEventListener } from "@solid-primitives/event-listener";
 | 
			
		||||
 | 
			
		||||
export type BottomSheetProps = {
 | 
			
		||||
  open?: boolean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue