add docs buttons height, exclamation icon for failure

This commit is contained in:
Dallin Romney 2024-12-18 17:15:36 -08:00
parent ac2f1dff9d
commit 3c678361ed
2 changed files with 5 additions and 5 deletions

View file

@ -5,9 +5,9 @@ import {
ArrowPathIcon,
ArrowTopRightOnSquareIcon,
CheckCircleIcon,
ExclamationTriangleIcon,
PauseCircleIcon,
TrashIcon,
XMarkIcon,
} from "@heroicons/react/24/outline";
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
import { updateIndexingStatus } from "../../redux/slices/indexingSlice";
@ -24,7 +24,7 @@ const STATUS_TO_ICON: Record<IndexingStatus["status"], any> = {
complete: CheckCircleIcon,
aborted: null,
pending: null,
failed: XMarkIcon, // Since we show an error message below
failed: ExclamationTriangleIcon, // Since we show an error message below
};
function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) {

View file

@ -16,8 +16,7 @@ function DocsIndexingStatuses() {
<h3 className="mb-1 mt-0 text-xl">@docs indexes</h3>
{configDocs.length ? (
<SecondaryButton
className="border-vsc-foreground text-vsc-foreground enabled:hover:bg-vsc-background m-2 rounded border bg-inherit px-3 py-2 enabled:hover:cursor-pointer enabled:hover:opacity-90 disabled:text-gray-500"
type="submit"
className="flex h-7 flex-col items-center justify-center"
onClick={() => {
dispatch(setShowDialog(true));
dispatch(setDialogMessage(<AddDocsDialog />));
@ -32,10 +31,11 @@ function DocsIndexingStatuses() {
? "Manage your documentation sources"
: "No docs yet"}
</span>
<div className="flex max-h-[170px] flex-col gap-1 overflow-x-hidden overflow-y-scroll pr-2">
<div className="flex max-h-[170px] flex-col gap-1 overflow-y-auto overflow-x-hidden pr-2">
<div>
{configDocs.length === 0 && (
<SecondaryButton
className="flex h-7 flex-col items-center justify-center"
onClick={() => {
dispatch(setShowDialog(true));
dispatch(setDialogMessage(<AddDocsDialog />));