style: login placeholder

This commit is contained in:
jialin
2026-06-12 22:20:31 +08:00
committed by jialin
parent 48159171c2
commit 8c06862705
2 changed files with 8 additions and 8 deletions
@@ -157,8 +157,14 @@ export const renderInstanceType = (
], ],
[ [
intl.formatMessage({ id: 'gpuservice.instance.disk.persistent' }), intl.formatMessage({ id: 'gpuservice.instance.disk.persistent' }),
toGB(volume?.persistentTemplate?.spec?.capacity) || // toGB returns '-' (a truthy string) for falsy input, so only call it
toGB(pvCapacityByName?.[volume?.persistent?.name]) || // when a value actually exists — otherwise the first branch would
// short-circuit the chain and the PV fallbacks would never run.
(volume?.persistentTemplate?.spec?.capacity &&
toGB(volume.persistentTemplate.spec.capacity)) ||
(volume?.persistent?.name &&
pvCapacityByName?.[volume.persistent.name] &&
toGB(pvCapacityByName[volume.persistent.name])) ||
volume?.persistent?.name volume?.persistent?.name
] ]
] ]
@@ -120,9 +120,6 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
> >
<Input <Input
autoComplete="username" autoComplete="username"
placeholder={intl.formatMessage({
id: 'common.login.username.holder'
})}
prefix={<UserOutlined />} prefix={<UserOutlined />}
style={{ height: 44 }} style={{ height: 44 }}
/> />
@@ -150,9 +147,6 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
autoComplete="current-password" autoComplete="current-password"
prefix={<LockOutlined />} prefix={<LockOutlined />}
style={{ height: 44 }} style={{ height: 44 }}
placeholder={intl.formatMessage({
id: 'common.login.password.holder'
})}
suffix={ suffix={
<Flex align="center" gap={0}> <Flex align="center" gap={0}>
<Button <Button