fix tabs rendering verticaly bug

This commit is contained in:
Milo Schwartz
2024-11-24 00:12:38 -05:00
parent d7c4bc43a4
commit 4be535c08d
2 changed files with 21 additions and 14 deletions

View File

@@ -80,6 +80,14 @@ export default async function ResourceAuthPage(props: {
);
}
const getNumMethods = () => {
let colLength = 0;
if (authInfo.pincode) colLength++;
if (authInfo.password) colLength++;
if (authInfo.sso) colLength++;
return colLength;
};
return (
<>
<div className="w-full max-w-md">
@@ -97,6 +105,7 @@ export default async function ResourceAuthPage(props: {
queryParamName={
process.env.RESOURCE_SESSION_QUERY_PARAM_NAME!
}
numMethods={getNumMethods()}
/>
</div>
</>