[Glitch] Change action button to be last on profiles in web UI
Port 19efa1b9f1 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									13c9524436
								
							
						
					
					
						commit
						b36e96ec90
					
				|  | @ -21,6 +21,7 @@ import { Button } from 'flavours/glitch/components/button'; | ||||||
| import { CopyIconButton } from 'flavours/glitch/components/copy_icon_button'; | import { CopyIconButton } from 'flavours/glitch/components/copy_icon_button'; | ||||||
| import { Icon }  from 'flavours/glitch/components/icon'; | import { Icon }  from 'flavours/glitch/components/icon'; | ||||||
| import { IconButton } from 'flavours/glitch/components/icon_button'; | import { IconButton } from 'flavours/glitch/components/icon_button'; | ||||||
|  | import { LoadingIndicator } from 'flavours/glitch/components/loading_indicator'; | ||||||
| import DropdownMenuContainer from 'flavours/glitch/containers/dropdown_menu_container'; | import DropdownMenuContainer from 'flavours/glitch/containers/dropdown_menu_container'; | ||||||
| import { autoPlayGif, me, domain } from 'flavours/glitch/initial_state'; | import { autoPlayGif, me, domain } from 'flavours/glitch/initial_state'; | ||||||
| import { PERMISSION_MANAGE_USERS, PERMISSION_MANAGE_FEDERATION } from 'flavours/glitch/permissions'; | import { PERMISSION_MANAGE_USERS, PERMISSION_MANAGE_FEDERATION } from 'flavours/glitch/permissions'; | ||||||
|  | @ -206,7 +207,7 @@ class Header extends ImmutablePureComponent { | ||||||
| 
 | 
 | ||||||
|     if (me !== account.get('id')) { |     if (me !== account.get('id')) { | ||||||
|       if (signedIn && !account.get('relationship')) { // Wait until the relationship is loaded |       if (signedIn && !account.get('relationship')) { // Wait until the relationship is loaded | ||||||
|         actionBtn = ''; |         actionBtn = <Button disabled><LoadingIndicator /></Button>; | ||||||
|       } else if (account.getIn(['relationship', 'requested'])) { |       } else if (account.getIn(['relationship', 'requested'])) { | ||||||
|         actionBtn = <Button text={intl.formatMessage(messages.cancel_follow_request)} title={intl.formatMessage(messages.requested)} onClick={this.props.onFollow} />; |         actionBtn = <Button text={intl.formatMessage(messages.cancel_follow_request)} title={intl.formatMessage(messages.requested)} onClick={this.props.onFollow} />; | ||||||
|       } else if (!account.getIn(['relationship', 'blocking'])) { |       } else if (!account.getIn(['relationship', 'blocking'])) { | ||||||
|  | @ -347,15 +348,10 @@ class Header extends ImmutablePureComponent { | ||||||
|             </a> |             </a> | ||||||
| 
 | 
 | ||||||
|             <div className='account__header__tabs__buttons'> |             <div className='account__header__tabs__buttons'> | ||||||
|               {!hidden && ( |               {!hidden && bellBtn} | ||||||
|                 <> |               {!hidden && shareBtn} | ||||||
|                   {actionBtn} |  | ||||||
|                   {bellBtn} |  | ||||||
|                   {shareBtn} |  | ||||||
|                 </> |  | ||||||
|               )} |  | ||||||
| 
 |  | ||||||
|               <DropdownMenuContainer disabled={menu.length === 0} items={menu} icon='ellipsis-v' iconComponent={MoreHorizIcon} size={24} direction='right' /> |               <DropdownMenuContainer disabled={menu.length === 0} items={menu} icon='ellipsis-v' iconComponent={MoreHorizIcon} size={24} direction='right' /> | ||||||
|  |               {!hidden && actionBtn} | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8089,10 +8089,7 @@ noscript { | ||||||
|       .button { |       .button { | ||||||
|         flex-shrink: 1; |         flex-shrink: 1; | ||||||
|         white-space: nowrap; |         white-space: nowrap; | ||||||
| 
 |         min-width: 80px; | ||||||
|         @media screen and (max-width: $no-gap-breakpoint) { |  | ||||||
|           min-width: 0; |  | ||||||
|         } |  | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       .icon-button { |       .icon-button { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue