fix: ui bug

This commit is contained in:
Daniel Hougaard
2025-03-05 22:47:40 +04:00
parent abbd427ee2
commit 5e70860160
@@ -276,6 +276,7 @@ export const SecretDetailSidebar = ({
key="secret-value" key="secret-value"
control={control} control={control}
render={({ field }) => ( render={({ field }) => (
<div className="flex items-center gap-2">
<FormControl <FormControl
helperText={ helperText={
cannotReadSecretValue ? ( cannotReadSecretValue ? (
@@ -293,25 +294,19 @@ export const SecretDetailSidebar = ({
} }
label="Value" label="Value"
> >
<div className="flex items-center gap-2">
<InfisicalSecretInput <InfisicalSecretInput
isReadOnly={isReadOnly} isReadOnly={isReadOnly}
environment={environment} environment={environment}
secretPath={secretPath} secretPath={secretPath}
key="secret-value" key="secret-value"
isDisabled={isOverridden || !isAllowed} isDisabled={isOverridden || !isAllowed}
containerClassName="text-bunker-300 hover:border-primary-400/50 border border-mineshaft-600 bg-bunker-800 px-2 py-1.5" containerClassName="text-bunker-300 w-full hover:border-primary-400/50 border border-mineshaft-600 bg-bunker-800 px-2 py-1.5"
{...field} {...field}
autoFocus={false} autoFocus={false}
/> />
</FormControl>
)}
/>
)}
</ProjectPermissionCan>
</div>
<div className="ml-1 mt-1.5 flex items-center">
<Button <Button
className="w-full px-2 py-[0.43rem] font-normal" className="px-2 py-[0.43rem] font-normal"
variant="outline_bg" variant="outline_bg"
leftIcon={<FontAwesomeIcon icon={faShare} />} leftIcon={<FontAwesomeIcon icon={faShare} />}
onClick={() => { onClick={() => {
@@ -324,6 +319,13 @@ export const SecretDetailSidebar = ({
Share Share
</Button> </Button>
</div> </div>
</FormControl>
</div>
)}
/>
)}
</ProjectPermissionCan>
</div>
</div> </div>
<div className="mb-2 rounded border border-mineshaft-600 bg-mineshaft-900 p-4 px-0 pb-0"> <div className="mb-2 rounded border border-mineshaft-600 bg-mineshaft-900 p-4 px-0 pb-0">
<div className="mb-4 px-4"> <div className="mb-4 px-4">