Skip to content

Commit c474556

Browse files
committed
chore: Don't cap leaderboard height if sent in a page
1 parent 975316e commit c474556

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ps/commands/points.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,18 @@ function getPointsType(input: string, roomPoints: NonNullable<PSRoomConfig['poin
3939
export function Board({
4040
headers,
4141
data,
42+
asPage = false,
4243
style,
4344
styles = {},
4445
}: {
4546
headers: (string | { hover: string; title: string })[];
4647
data: (string | number)[][];
48+
asPage?: boolean;
4749
style?: CSSProperties;
4850
styles?: { header?: CSSProperties; odd?: CSSProperties; even?: CSSProperties };
4951
}): ReactElement {
5052
return (
51-
<div style={{ maxHeight: 320, overflowY: 'scroll' }}>
53+
<div style={{ ...(!asPage ? { maxHeight: 320 } : undefined), overflowY: 'scroll' }}>
5254
<center>
5355
<table style={{ borderCollapse: 'collapse', borderSpacing: 0, borderColor: '#aaa', ...style }}>
5456
<colgroup>

0 commit comments

Comments
 (0)