mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Port navigation.
This commit is contained in:
@@ -9,7 +9,11 @@ export interface IconBaseProps<T> {
|
||||
animate?: boolean;
|
||||
}
|
||||
|
||||
export default styled.svg<{ square?: boolean }>`
|
||||
interface IconModifiers {
|
||||
square?: boolean
|
||||
}
|
||||
|
||||
export default styled.svg<IconModifiers>`
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -20,3 +24,11 @@ export default styled.svg<{ square?: boolean }>`
|
||||
` }
|
||||
}
|
||||
`;
|
||||
|
||||
export const ImageIconBase = styled.img<IconModifiers>`
|
||||
object-fit: cover;
|
||||
|
||||
${ props => !props.square && css`
|
||||
border-radius: 50%;
|
||||
` }
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user