Skip to content

Commit

Permalink
allow changing inforow lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
bprize15 committed Jan 28, 2025
1 parent 93001e5 commit 409e230
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/webapp/app/pages/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ export const InfoRow: React.FunctionComponent<{
title: JSX.Element | string;
content?: JSX.Element | string;
direction?: 'vertical' | 'horizontal';
titleWidth?: number;
contentWidth?: number;
}> = props => {
let titleWidth = 4;
let contentWidth = 8;
let titleWidth = props.titleWidth ?? 4;
let contentWidth = props.contentWidth ?? 8;
if (props.direction && props.direction === 'vertical') {
titleWidth = contentWidth = 12;
}
Expand Down Expand Up @@ -207,6 +209,8 @@ export class AccountPage extends React.Component<IRegisterProps> {

const apiAccess = (
<InfoRow
titleWidth={3}
contentWidth={9}
title={
<div className={'d-flex align-items-center'}>
<span>
Expand Down

0 comments on commit 409e230

Please sign in to comment.