Use tabWidth 4 without actual tabs.

This commit is contained in:
Paul
2021-07-05 11:25:20 +01:00
parent a9ce64c9fe
commit 14809f1989
180 changed files with 16619 additions and 16622 deletions

View File

@@ -2,40 +2,40 @@ import { Attachment } from "revolt.js/dist/api/objects";
import styled, { css } from "styled-components";
export interface IconBaseProps<T> {
target?: T;
attachment?: Attachment;
target?: T;
attachment?: Attachment;
size: number;
animate?: boolean;
size: number;
animate?: boolean;
}
interface IconModifiers {
square?: boolean;
square?: boolean;
}
export default styled.svg<IconModifiers>`
flex-shrink: 0;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
object-fit: cover;
img {
width: 100%;
height: 100%;
object-fit: cover;
${(props) =>
!props.square &&
css`
border-radius: 50%;
`}
}
${(props) =>
!props.square &&
css`
border-radius: 50%;
`}
}
`;
export const ImageIconBase = styled.img<IconModifiers>`
flex-shrink: 0;
object-fit: cover;
flex-shrink: 0;
object-fit: cover;
${(props) =>
!props.square &&
css`
border-radius: 50%;
`}
${(props) =>
!props.square &&
css`
border-radius: 50%;
`}
`;