fix(style): sso button width

This commit is contained in:
jialin
2026-06-03 21:29:31 +08:00
committed by jialin
parent caea43590a
commit 24b458530d
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ const SiderMenu: React.FC<SiderMenuProps> = (props) => {
}
}}
>
<div>
<div style={{ paddingRight: 8 }}>
{menuData.map((item: MenuItem, index: number) => (
<div key={item.key}>
{item.children && item.children.length > 0 ? (
@@ -60,10 +60,14 @@ export default function useQueryInstanceTypes() {
...item.status,
onceMaxRequest: {
...rawMax,
cpu: rawMax?.cpu ? `${ceilMilliToCore(rawMax.cpu)?.cores}` : '',
ram: rawMax?.ram ? `${parseQuantityToGi(rawMax.ram)?.value}` : '',
cpu: rawMax?.cpu
? `${ceilMilliToCore(rawMax.cpu)?.cores || 0}`
: '',
ram: rawMax?.ram
? `${parseQuantityToGi(rawMax.ram)?.value || 0}`
: '',
localStorage: rawMax?.localStorage
? `${parseQuantityToGi(rawMax.localStorage)?.value}`
? `${parseQuantityToGi(rawMax.localStorage)?.value || 0}`
: ''
}
},
+1 -5
View File
@@ -30,11 +30,7 @@ const Buttons = styled.div`
justify-content: flex-start;
align-items: stretch;
gap: 24px;
// Match LocalUserForm's 360px on roomy layouts so switching between
// SSO and password doesn't resize the card, but cap at the parent's
// inner width so the column doesn't overflow when the parent is
// tighter (e.g. the enterprise login's cover variant: 272px inner).
width: 360px;
width: 100%;
max-width: 100%;
margin-top: 52px;
`;