mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-11 13:16:38 +00:00
fix tabs rendering verticaly bug
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user