mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 20:28:54 +00:00
minor style updates to the dashboard
This commit is contained in:
committed by
Akhil Mohan
parent
4929022523
commit
5450c1126a
@@ -257,15 +257,15 @@ export const SecretMainPage = () => {
|
|||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
className={twMerge(
|
className={twMerge(
|
||||||
"mt-6 overflow-auto thin-scrollbar bg-mineshaft-800 text-left text-bunker-300 rounded-md text-sm"
|
"mt-3 overflow-auto thin-scrollbar bg-mineshaft-800 text-left text-bunker-300 rounded-md text-sm border border-mineshaft-600"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col ">
|
<div className="flex flex-col ">
|
||||||
{isNotEmtpy && (
|
{isNotEmtpy && (
|
||||||
<div className="flex font-medium border-b border-mineshaft-600">
|
<div className="flex font-medium border-b border-mineshaft-600">
|
||||||
<div className="w-12 flex-shrink-0" />
|
<div className="w-[2.8rem] px-4 py-3 flex-shrink-0" />
|
||||||
<div
|
<div
|
||||||
className="w-80 flex-shrink-0 border-r flex items-center border-mineshaft-600 px-4 py-2"
|
className="w-80 flex-shrink-0 border-r flex items-center border-mineshaft-600 w-11 px-4 py-2"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onClick={handleSortToggle}
|
onClick={handleSortToggle}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { subject } from "@casl/ability";
|
import { subject } from "@casl/ability";
|
||||||
import {
|
import {
|
||||||
faAnglesDown,
|
faAngleDown,
|
||||||
faCheckCircle,
|
faCheckCircle,
|
||||||
faChevronRight,
|
faChevronRight,
|
||||||
faCodeCommit,
|
faCodeCommit,
|
||||||
@@ -317,11 +317,11 @@ export const ActionBar = ({
|
|||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
className="rounded-l-none bg-mineshaft-600 p-3"
|
className="rounded-l-none bg-mineshaft-600 p-3"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faAnglesDown} />
|
<FontAwesomeIcon icon={faAngleDown} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end">
|
<DropdownMenuContent align="end">
|
||||||
<div className="p-2 flex flex-col space-y-2">
|
<div className="p-1.5 flex flex-col space-y-1">
|
||||||
<ProjectPermissionCan
|
<ProjectPermissionCan
|
||||||
I={ProjectPermissionActions.Create}
|
I={ProjectPermissionActions.Create}
|
||||||
a={subject(ProjectPermissionSub.Secrets, { environment, secretPath })}
|
a={subject(ProjectPermissionSub.Secrets, { environment, secretPath })}
|
||||||
@@ -373,7 +373,7 @@ export const ActionBar = ({
|
|||||||
isMultiSelectActive && "h-16"
|
isMultiSelectActive && "h-16"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="text-bunker-300 flex items-center bg-mineshaft-800 mt-4 py-2 px-4 rounded-md">
|
<div className="text-bunker-300 flex items-center bg-mineshaft-800 mt-3.5 py-2 px-4 rounded-md border border-mineshaft-600">
|
||||||
<Tooltip content="Clear">
|
<Tooltip content="Clear">
|
||||||
<IconButton variant="plain" ariaLabel="clear-selection" onClick={onResetSelectedSecret}>
|
<IconButton variant="plain" ariaLabel="clear-selection" onClick={onResetSelectedSecret}>
|
||||||
<FontAwesomeIcon icon={faMinusSquare} size="lg" />
|
<FontAwesomeIcon icon={faMinusSquare} size="lg" />
|
||||||
@@ -391,8 +391,9 @@ export const ActionBar = ({
|
|||||||
{(isAllowed) => (
|
{(isAllowed) => (
|
||||||
<Button
|
<Button
|
||||||
variant="outline_bg"
|
variant="outline_bg"
|
||||||
|
colorSchema="danger"
|
||||||
leftIcon={<FontAwesomeIcon icon={faTrash} />}
|
leftIcon={<FontAwesomeIcon icon={faTrash} />}
|
||||||
className="ml-4 text-red-700"
|
className="ml-4"
|
||||||
onClick={() => handlePopUpOpen("bulkDeleteSecrets")}
|
onClick={() => handlePopUpOpen("bulkDeleteSecrets")}
|
||||||
isDisabled={!isAllowed}
|
isDisabled={!isAllowed}
|
||||||
size="xs"
|
size="xs"
|
||||||
|
|||||||
@@ -312,6 +312,8 @@ export const SecretDetailSidebar = ({
|
|||||||
<Button
|
<Button
|
||||||
size="xs"
|
size="xs"
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
colorSchema="primary"
|
||||||
|
variant="outline_bg"
|
||||||
leftIcon={<FontAwesomeIcon icon={faTag} />}
|
leftIcon={<FontAwesomeIcon icon={faTag} />}
|
||||||
onClick={onCreateTag}
|
onClick={onCreateTag}
|
||||||
isDisabled={!isAllowed}
|
isDisabled={!isAllowed}
|
||||||
|
|||||||
@@ -193,11 +193,11 @@ export const SecretItem = memo(
|
|||||||
id={`checkbox-${secret._id}`}
|
id={`checkbox-${secret._id}`}
|
||||||
isChecked={isSelected}
|
isChecked={isSelected}
|
||||||
onCheckedChange={() => onToggleSecretSelect(secret._id)}
|
onCheckedChange={() => onToggleSecretSelect(secret._id)}
|
||||||
className={twMerge("group-hover:flex hidden", isSelected && "flex")}
|
className={twMerge("group-hover:flex hidden ml-3", isSelected && "flex")}
|
||||||
/>
|
/>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
icon={faKey}
|
icon={faKey}
|
||||||
className={twMerge("group-hover:hidden block", isSelected && "hidden")}
|
className={twMerge("group-hover:hidden block ml-3", isSelected && "hidden")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-80 h-11 flex items-center px-4 py-2 flex-shrink-0">
|
<div className="w-80 h-11 flex items-center px-4 py-2 flex-shrink-0">
|
||||||
@@ -211,7 +211,7 @@ export const SecretItem = memo(
|
|||||||
autoCapitalization={currentWorkspace?.autoCapitalization}
|
autoCapitalization={currentWorkspace?.autoCapitalization}
|
||||||
variant="plain"
|
variant="plain"
|
||||||
{...field}
|
{...field}
|
||||||
className="w-full focus:text-bunker-100 hover:ring-primary-400/50 hover:ring-1"
|
className="w-full focus:text-bunker-100 focus:ring-transparent px-0"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
@@ -232,7 +232,7 @@ export const SecretItem = memo(
|
|||||||
isVisible={isVisible}
|
isVisible={isVisible}
|
||||||
isReadOnly={isReadOnly}
|
isReadOnly={isReadOnly}
|
||||||
{...field}
|
{...field}
|
||||||
containerClassName="hover:border-primary-400/50 border border-transparent px-2 py-1.5 rounded-md transition-all group-hover:mr-2"
|
containerClassName="py-1.5 rounded-md transition-all group-hover:mr-2"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
@@ -247,7 +247,7 @@ export const SecretItem = memo(
|
|||||||
key="secret-value"
|
key="secret-value"
|
||||||
isVisible={isVisible}
|
isVisible={isVisible}
|
||||||
{...field}
|
{...field}
|
||||||
containerClassName="hover:border-primary-400/50 border border-transparent px-2 py-1.5 rounded-md transition-all group-hover:mr-2"
|
containerClassName="py-1.5 rounded-md transition-all group-hover:mr-2"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
@@ -311,10 +311,12 @@ export const SecretItem = memo(
|
|||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem className="px-1.5">
|
||||||
<Button
|
<Button
|
||||||
size="xs"
|
size="xs"
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
colorSchema="primary"
|
||||||
|
variant="outline_bg"
|
||||||
leftIcon={<FontAwesomeIcon icon={faTag} />}
|
leftIcon={<FontAwesomeIcon icon={faTag} />}
|
||||||
onClick={onCreateTag}
|
onClick={onCreateTag}
|
||||||
>
|
>
|
||||||
@@ -415,6 +417,7 @@ export const SecretItem = memo(
|
|||||||
<IconButton
|
<IconButton
|
||||||
ariaLabel="delete-value"
|
ariaLabel="delete-value"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
|
colorSchema="danger"
|
||||||
size="md"
|
size="md"
|
||||||
className="group-hover:opacity-100 opacity-0 p-0"
|
className="group-hover:opacity-100 opacity-0 p-0"
|
||||||
onClick={() => onDeleteSecret(secret)}
|
onClick={() => onDeleteSecret(secret)}
|
||||||
|
|||||||
+2
-1
@@ -122,12 +122,13 @@ export const SecretEditRow = ({
|
|||||||
<Tooltip content="cancel">
|
<Tooltip content="cancel">
|
||||||
<IconButton
|
<IconButton
|
||||||
variant="plain"
|
variant="plain"
|
||||||
|
colorSchema="danger"
|
||||||
ariaLabel="reset-value"
|
ariaLabel="reset-value"
|
||||||
className="h-full"
|
className="h-full"
|
||||||
onClick={handleFormReset}
|
onClick={handleFormReset}
|
||||||
isDisabled={isSubmitting}
|
isDisabled={isSubmitting}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faXmark} />
|
<FontAwesomeIcon icon={faXmark} className="hover:text-red" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user