BottomSheet: sets max-height to 100vh on desktop
This commit is contained in:
		
							parent
							
								
									25875ab020
								
							
						
					
					
						commit
						fe2802d933
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -10,10 +10,13 @@
 | 
			
		|||
  max-width: 560px;
 | 
			
		||||
  border-radius: 2px;
 | 
			
		||||
  overscroll-behavior: contain;
 | 
			
		||||
  max-height: 100vh;
 | 
			
		||||
  max-height: 100dvh;
 | 
			
		||||
 | 
			
		||||
  &::backdrop {
 | 
			
		||||
    background-color: black;
 | 
			
		||||
    opacity: 0.5;
 | 
			
		||||
    transition: opacity 220ms var(--tutu-anim-curve-std);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  box-shadow: var(--tutu-shadow-e16);
 | 
			
		||||
| 
						 | 
				
			
			@ -39,5 +42,9 @@
 | 
			
		|||
  &.animated {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    transform: none;
 | 
			
		||||
 | 
			
		||||
    &::backdrop {
 | 
			
		||||
      opacity: 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue