mirror of
				https://github.com/discourse/discourse.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	UX: fallback max-height for modal style (#29321)
This commit is contained in:
		@@ -26,9 +26,9 @@
 | 
			
		||||
    pointer-events: auto;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    margin: 0 auto;
 | 
			
		||||
    max-height: 80vh;
 | 
			
		||||
    background-color: var(--secondary);
 | 
			
		||||
    box-shadow: var(--shadow-modal);
 | 
			
		||||
    max-height: var(--modal-max-height, 80vh); // unset, optional theme utility
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &__header {
 | 
			
		||||
 
 | 
			
		||||
@@ -5,9 +5,7 @@
 | 
			
		||||
  &__container {
 | 
			
		||||
    max-width: var(--modal-max-width);
 | 
			
		||||
    min-width: var(--modal-min-width);
 | 
			
		||||
    // height values add optional theme utility
 | 
			
		||||
    max-height: var(--modal-max-height);
 | 
			
		||||
    min-height: var(--modal-min-height);
 | 
			
		||||
    min-height: var(--modal-min-height); // unset, optional theme utility
 | 
			
		||||
    .d-modal.-large & {
 | 
			
		||||
      max-width: 800px;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user