Merge branch 'master' into contextual_border_radius_variables

This commit is contained in:
Paul Makles
2021-09-03 11:01:19 +01:00
committed by GitHub
14 changed files with 54 additions and 40 deletions

View File

@@ -30,9 +30,9 @@ export default function TextFile({ attachment }: Props) {
if (typeof content !== "undefined") return;
if (loading) return;
if (attachment.size > 20_000) {
if (attachment.size > 100_000) {
setContent(
"This file is > 20 KB, for your sake I did not load it.\nSee tracking issue here for previews: https://gitlab.insrt.uk/revolt/revite/-/issues/2",
"This file is > 100 KB, for your sake I did not load it.\nSee tracking issue here for previews: https://github.com/revoltchat/revite/issues/35",
);
return;
}

View File

@@ -23,7 +23,7 @@ const Base = styled.div`
user-select: none;
align-items: center;
flex-direction: row;
width: calc(100% - 3px);
width: calc(100% - var(--scrollbar-thickness));
color: var(--secondary-foreground);
background: var(--secondary-background);
}