fix(style): sso button width
This commit is contained in:
@@ -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}`
|
||||
: ''
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user