mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 16:26:37 +00:00
fixed the bug with smaller icon buttons
This commit is contained in:
@@ -505,7 +505,7 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
ariaLabel="recovery"
|
ariaLabel="recovery"
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
onClick={() => setIsSecretValueHidden.toggle()}
|
onClick={() => handlePopUpOpen('secretSnapshots')}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faCodeCommit} />
|
<FontAwesomeIcon icon={faCodeCommit} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -530,7 +530,15 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
ariaLabel="recovery"
|
ariaLabel="recovery"
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
onClick={() => setIsSecretValueHidden.toggle()}
|
onClick={() => {
|
||||||
|
if (secretContainer.current) {
|
||||||
|
secretContainer.current.scroll({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
prepend(DEFAULT_SECRET_VALUE, { shouldFocus: false });
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faPlus} />
|
<FontAwesomeIcon icon={faPlus} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user