fix(templates): Fix layout of user info on desktop view
This commit is contained in:
		
							parent
							
								
									ff697ff792
								
							
						
					
					
						commit
						d90dc2d77f
					
				
					 2 changed files with 10 additions and 5 deletions
				
			
		|  | @ -95,10 +95,16 @@ html, body { | |||
|   max-width: 860px; | ||||
| } | ||||
| .converse .mdl-card .avatar-card { | ||||
|     margin-left: auto; | ||||
|     margin-right: auto; | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
|     text-align: center; | ||||
|     margin-top: 30px; | ||||
| } | ||||
| .desktop-avatar { | ||||
|     width: 80px; | ||||
|     margin-right: auto; | ||||
|     margin-left: auto; | ||||
| } | ||||
| .mobile-avatar { | ||||
|     width: 30px; | ||||
|     border-radius: 8px; | ||||
|  |  | |||
|  | @ -38,9 +38,8 @@ | |||
|                         {# card to display avatars on desktop #} | ||||
|                         <div class="mdl-card mdl-shadow--2dp mdl-cell--2-col mdl-cell--hide-phone mdl-cell--hide-tablet avatar-box"> | ||||
|                             <div class="avatar-card"> | ||||
|                                 <img src="https://www.gravatar.com/avatar/{{ post.author_gravatar }}?d=monsterid&s=160" style="width: 80px;"/> | ||||
|                                 <br> | ||||
|                                 <span class="user-name">{{ post.author_name }}</span> | ||||
|                                 <img class="desktop-avatar" src="https://www.gravatar.com/avatar/{{ post.author_gravatar }}?d=monsterid&s=160" /> | ||||
|                                 <p class="user-name">{{ post.author_name }}</p> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         {# card for main post content #} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue