[Glitch] Fix background and icon on notification requests in web UI
Port 0cea7a623b to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									b55bbfa2b3
								
							
						
					
					
						commit
						fc533cfad3
					
				| 
						 | 
					@ -41,7 +41,8 @@ export const FilteredNotificationsBanner = () => {
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div className='filtered-notifications-banner__badge'>
 | 
					      <div className='filtered-notifications-banner__badge'>
 | 
				
			||||||
        {toCappedNumber(policy.getIn(['summary', 'pending_notifications_count']))}
 | 
					        <div className='filtered-notifications-banner__badge__badge'>{toCappedNumber(policy.getIn(['summary', 'pending_notifications_count']))}</div>
 | 
				
			||||||
 | 
					        <FormattedMessage id='filtered_notifications_banner.private_mentions' defaultMessage='{count, plural, one {private mention} other {private mentions}}' values={{ count: policy.getIn(['summary', 'pending_notifications_count']) }} />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </Link>
 | 
					    </Link>
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,8 +7,8 @@ import { Link } from 'react-router-dom';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { useSelector, useDispatch } from 'react-redux';
 | 
					import { useSelector, useDispatch } from 'react-redux';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import DeleteIcon from '@/material-icons/400-24px/delete.svg?react';
 | 
				
			||||||
import DoneIcon from '@/material-icons/400-24px/done.svg?react';
 | 
					import DoneIcon from '@/material-icons/400-24px/done.svg?react';
 | 
				
			||||||
import VolumeOffIcon from '@/material-icons/400-24px/volume_off.svg?react';
 | 
					 | 
				
			||||||
import { acceptNotificationRequest, dismissNotificationRequest } from 'flavours/glitch/actions/notifications';
 | 
					import { acceptNotificationRequest, dismissNotificationRequest } from 'flavours/glitch/actions/notifications';
 | 
				
			||||||
import { Avatar } from 'flavours/glitch/components/avatar';
 | 
					import { Avatar } from 'flavours/glitch/components/avatar';
 | 
				
			||||||
import { IconButton } from 'flavours/glitch/components/icon_button';
 | 
					import { IconButton } from 'flavours/glitch/components/icon_button';
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,7 @@ export const NotificationRequest = ({ id, accountId, notificationsCount }) => {
 | 
				
			||||||
      </Link>
 | 
					      </Link>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div className='notification-request__actions'>
 | 
					      <div className='notification-request__actions'>
 | 
				
			||||||
        <IconButton iconComponent={VolumeOffIcon} onClick={handleDismiss} title={intl.formatMessage(messages.dismiss)} />
 | 
					        <IconButton iconComponent={DeleteIcon} onClick={handleDismiss} title={intl.formatMessage(messages.dismiss)} />
 | 
				
			||||||
        <IconButton iconComponent={DoneIcon} onClick={handleAccept} title={intl.formatMessage(messages.accept)} />
 | 
					        <IconButton iconComponent={DoneIcon} onClick={handleAccept} title={intl.formatMessage(messages.accept)} />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10593,10 +10593,10 @@ noscript {
 | 
				
			||||||
.filtered-notifications-banner {
 | 
					.filtered-notifications-banner {
 | 
				
			||||||
  display: flex;
 | 
					  display: flex;
 | 
				
			||||||
  align-items: center;
 | 
					  align-items: center;
 | 
				
			||||||
  background: $ui-base-color;
 | 
					  border: 1px solid var(--background-border-color);
 | 
				
			||||||
  border-bottom: 1px solid lighten($ui-base-color, 8%);
 | 
					  border-top: 0;
 | 
				
			||||||
  padding: 15px;
 | 
					  padding: 24px 32px;
 | 
				
			||||||
  gap: 15px;
 | 
					  gap: 16px;
 | 
				
			||||||
  color: $darker-text-color;
 | 
					  color: $darker-text-color;
 | 
				
			||||||
  text-decoration: none;
 | 
					  text-decoration: none;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10604,15 +10604,12 @@ noscript {
 | 
				
			||||||
  &:active,
 | 
					  &:active,
 | 
				
			||||||
  &:focus {
 | 
					  &:focus {
 | 
				
			||||||
    color: $secondary-text-color;
 | 
					    color: $secondary-text-color;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    .filtered-notifications-banner__badge {
 | 
					 | 
				
			||||||
      background: $secondary-text-color;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  .icon {
 | 
					  .icon {
 | 
				
			||||||
    width: 24px;
 | 
					    width: 24px;
 | 
				
			||||||
    height: 24px;
 | 
					    height: 24px;
 | 
				
			||||||
 | 
					    padding: 2px;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &__text {
 | 
					  &__text {
 | 
				
			||||||
| 
						 | 
					@ -10628,13 +10625,24 @@ noscript {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &__badge {
 | 
					  &__badge {
 | 
				
			||||||
    background: $darker-text-color;
 | 
					    display: flex;
 | 
				
			||||||
    color: $ui-base-color;
 | 
					    align-items: center;
 | 
				
			||||||
    border-radius: 100px;
 | 
					    border-radius: 999px;
 | 
				
			||||||
    padding: 2px 8px;
 | 
					    background: var(--background-border-color);
 | 
				
			||||||
 | 
					    color: $darker-text-color;
 | 
				
			||||||
 | 
					    padding: 4px;
 | 
				
			||||||
 | 
					    padding-inline-end: 8px;
 | 
				
			||||||
 | 
					    gap: 6px;
 | 
				
			||||||
    font-weight: 500;
 | 
					    font-weight: 500;
 | 
				
			||||||
    font-size: 11px;
 | 
					    font-size: 11px;
 | 
				
			||||||
    line-height: 16px;
 | 
					    line-height: 16px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    &__badge {
 | 
				
			||||||
 | 
					      background: $ui-button-background-color;
 | 
				
			||||||
 | 
					      color: $white;
 | 
				
			||||||
 | 
					      border-radius: 100px;
 | 
				
			||||||
 | 
					      padding: 2px 8px;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10643,7 +10651,7 @@ noscript {
 | 
				
			||||||
  align-items: center;
 | 
					  align-items: center;
 | 
				
			||||||
  gap: 16px;
 | 
					  gap: 16px;
 | 
				
			||||||
  padding: 15px;
 | 
					  padding: 15px;
 | 
				
			||||||
  border-bottom: 1px solid lighten($ui-base-color, 8%);
 | 
					  border-bottom: 1px solid var(--background-border-color);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  &__link {
 | 
					  &__link {
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
| 
						 | 
					@ -10691,7 +10699,7 @@ noscript {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    .icon-button {
 | 
					    .icon-button {
 | 
				
			||||||
      border-radius: 4px;
 | 
					      border-radius: 4px;
 | 
				
			||||||
      border: 1px solid lighten($ui-base-color, 8%);
 | 
					      border: 1px solid var(--background-border-color);
 | 
				
			||||||
      padding: 5px;
 | 
					      padding: 5px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue