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) => (
|
{menuData.map((item: MenuItem, index: number) => (
|
||||||
<div key={item.key}>
|
<div key={item.key}>
|
||||||
{item.children && item.children.length > 0 ? (
|
{item.children && item.children.length > 0 ? (
|
||||||
|
|||||||
@@ -60,10 +60,14 @@ export default function useQueryInstanceTypes() {
|
|||||||
...item.status,
|
...item.status,
|
||||||
onceMaxRequest: {
|
onceMaxRequest: {
|
||||||
...rawMax,
|
...rawMax,
|
||||||
cpu: rawMax?.cpu ? `${ceilMilliToCore(rawMax.cpu)?.cores}` : '',
|
cpu: rawMax?.cpu
|
||||||
ram: rawMax?.ram ? `${parseQuantityToGi(rawMax.ram)?.value}` : '',
|
? `${ceilMilliToCore(rawMax.cpu)?.cores || 0}`
|
||||||
|
: '',
|
||||||
|
ram: rawMax?.ram
|
||||||
|
? `${parseQuantityToGi(rawMax.ram)?.value || 0}`
|
||||||
|
: '',
|
||||||
localStorage: rawMax?.localStorage
|
localStorage: rawMax?.localStorage
|
||||||
? `${parseQuantityToGi(rawMax.localStorage)?.value}`
|
? `${parseQuantityToGi(rawMax.localStorage)?.value || 0}`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,11 +30,7 @@ const Buttons = styled.div`
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
// Match LocalUserForm's 360px on roomy layouts so switching between
|
width: 100%;
|
||||||
// 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;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-top: 52px;
|
margin-top: 52px;
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user