fix: members list in the group overlay doesnt need a set bg color

removed !important from the transparent color assignment in the session radio
pull/3083/head
William Grant 1 year ago
parent 8e5ac58bc1
commit 111541f228

@ -5,7 +5,7 @@ import { Flex } from './Flex';
const StyledButton = styled.button<{ disabled: boolean }>` const StyledButton = styled.button<{ disabled: boolean }>`
cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')}; cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')};
min-height: 30px; min-height: 30px;
background-color: var(--transparent-color) !important; background-color: var(--transparent-color);
`; `;
const StyledInput = styled.input<{ const StyledInput = styled.input<{

@ -49,12 +49,6 @@ const StyledGroupMemberListContainer = styled.div`
} }
`; `;
const StyledGroupMemberList = styled.div`
button {
background-color: var(--background-secondary-color);
}
`;
const NoContacts = () => { const NoContacts = () => {
return ( return (
<StyledMemberListNoContacts>{window.i18n('noContactsForGroup')}</StyledMemberListNoContacts> <StyledMemberListNoContacts>{window.i18n('noContactsForGroup')}</StyledMemberListNoContacts>
@ -185,7 +179,7 @@ export const OverlayClosedGroup = () => {
) : !isEmpty(searchTerm) && contactsToRender.length === 0 ? ( ) : !isEmpty(searchTerm) && contactsToRender.length === 0 ? (
<StyledNoResults>{window.i18n('noSearchResults', [searchTerm])}</StyledNoResults> <StyledNoResults>{window.i18n('noSearchResults', [searchTerm])}</StyledNoResults>
) : ( ) : (
<StyledGroupMemberList> <div>
{contactsToRender.map((memberPubkey: string) => ( {contactsToRender.map((memberPubkey: string) => (
<MemberListItem <MemberListItem
pubkey={memberPubkey} pubkey={memberPubkey}
@ -195,7 +189,7 @@ export const OverlayClosedGroup = () => {
onUnselect={removeFromSelected} onUnselect={removeFromSelected}
/> />
))} ))}
</StyledGroupMemberList> </div>
)} )}
</StyledGroupMemberListContainer> </StyledGroupMemberListContainer>

Loading…
Cancel
Save