diff --git a/frontend/src/index.css b/frontend/src/index.css index 4c1bb30f..ee9aa0c2 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -46,6 +46,31 @@ body.dark { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } + + /* Thin scrollbar utility */ + .scrollbar-thin::-webkit-scrollbar { + width: 6px; + height: 6px; + } + + .scrollbar-thin::-webkit-scrollbar-track { + background: transparent; + } + + .scrollbar-thin::-webkit-scrollbar-thumb { + background: rgba(156, 163, 175, 0.5); + border-radius: 3px; + } + + .scrollbar-thin::-webkit-scrollbar-thumb:hover { + background: rgba(156, 163, 175, 0.7); + } + + /* For Firefox */ + .scrollbar-thin { + scrollbar-width: thin; + scrollbar-color: rgba(156, 163, 175, 0.5) transparent; + } } @layer components { diff --git a/frontend/src/settings/ToolConfig.tsx b/frontend/src/settings/ToolConfig.tsx index 0908b78c..50b67d0d 100644 --- a/frontend/src/settings/ToolConfig.tsx +++ b/frontend/src/settings/ToolConfig.tsx @@ -10,6 +10,7 @@ import Dropdown from '../components/Dropdown'; import Input from '../components/Input'; import ToggleSwitch from '../components/ToggleSwitch'; import AddActionModal from '../modals/AddActionModal'; +import ConfirmationModal from '../modals/ConfirmationModal'; import { ActiveState } from '../models/misc'; import { selectToken } from '../preferences/preferenceSlice'; import { APIActionType, APIToolType, UserToolType } from './types'; @@ -118,7 +119,7 @@ export default function ToolConfig({ }); }; return ( -
- {action.name} -
+ ([actionName, action], actionIndex) => ( ++ {action.name} +
+