Use grid instead of flexbox for message_area for better gaps.
This commit is contained in:
		
							parent
							
								
									d093843f28
								
							
						
					
					
						commit
						2a379919e0
					
				
					 2 changed files with 15 additions and 8 deletions
				
			
		|  | @ -201,17 +201,26 @@ button:active | ||||||
| 
 | 
 | ||||||
| #message_area | #message_area | ||||||
| { | { | ||||||
|     display: flex; |     display: grid; | ||||||
|     flex-direction: column; |     grid-auto-flow: row; | ||||||
|     align-items: center; |     grid-auto-rows: min-content; | ||||||
|  |     grid-gap: 8px; | ||||||
|  |     padding: 8px; | ||||||
|     overflow-y: auto; |     overflow-y: auto; | ||||||
|     background-color: var(--color_transparency); |     background-color: var(--color_transparency); | ||||||
| } | } | ||||||
|  | #message_area > :last-child | ||||||
|  | { | ||||||
|  |     /* | ||||||
|  |     For some reason, the message_area's 8px padding doesn't apply to the bottom | ||||||
|  |     when the container is scrolled. | ||||||
|  |     */ | ||||||
|  |     margin-bottom: 8px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .message_bubble | .message_bubble | ||||||
| { | { | ||||||
|     width: 80%; |     padding: 2px; | ||||||
|     margin: 4px; |  | ||||||
| 
 |  | ||||||
|     word-wrap: break-word; |     word-wrap: break-word; | ||||||
| } | } | ||||||
| .message_bubble * | .message_bubble * | ||||||
|  |  | ||||||
|  | @ -56,8 +56,6 @@ | ||||||
| } | } | ||||||
| #message_area | #message_area | ||||||
| { | { | ||||||
|     display: flex; |  | ||||||
| 
 |  | ||||||
|     min-height: 30px; |     min-height: 30px; | ||||||
|     max-height: none; |     max-height: none; | ||||||
|     margin: 8px; |     margin: 8px; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue