diff --git a/package.json b/package.json index c97879f..0985d1f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pageassist", "displayName": "Page Assist - A Web UI for Local AI Models", - "version": "1.0.0", + "version": "1.0.1", "description": "Use your locally running AI models to assist you in your web browsing.", "author": "n4ze3m", "scripts": { diff --git a/src/components/Common/Playground/Message.tsx b/src/components/Common/Playground/Message.tsx index 57f2ac9..17fb6bd 100644 --- a/src/components/Common/Playground/Message.tsx +++ b/src/components/Common/Playground/Message.tsx @@ -1,6 +1,7 @@ import { CheckIcon, ClipboardIcon } from "@heroicons/react/24/outline" import Markdown from "../../Common/Markdown" import React from "react" +import { Image } from "antd" type Props = { message: string @@ -55,19 +56,21 @@ export const PlaygroundMessage = (props: Props) => { {/* source if aviable */} {props.images && (
- {props.images - .filter((image) => image.length > 0) - .map((image, index) => ( -
- Uploaded -
- ))} + {props.images && ( +
+ {props.images + .filter((image) => image.length > 0) + .map((image, index) => ( + Uploaded Image + ))} +
+ )}
)} diff --git a/src/components/Common/SaveButton.tsx b/src/components/Common/SaveButton.tsx index cf6e950..0aba6d4 100644 --- a/src/components/Common/SaveButton.tsx +++ b/src/components/Common/SaveButton.tsx @@ -26,7 +26,7 @@ export const SaveButton = ({ }, 1000) }} disabled={disabled} - className={`bg-pink-500 text-r mt-4 hover:bg-pink-600 text-white px-4 py-2 rounded-md dark:bg-pink-600 dark:hover:bg-pink-700 ${className}`}> + className={`inline-flex mt-4 items-center rounded-md border border-transparent bg-black px-2 py-2 text-sm font-medium leading-4 text-white shadow-sm dark:bg-white dark:text-gray-800 disabled:opacity-50 ${className}`}> {clickedSave ? textOnSave : text} ) diff --git a/src/components/Option/Layout.tsx b/src/components/Option/Layout.tsx index 6c7dd4a..37d8934 100644 --- a/src/components/Option/Layout.tsx +++ b/src/components/Option/Layout.tsx @@ -19,7 +19,7 @@ import { Drawer, Layout, Modal, Select } from "antd" import { useQuery } from "@tanstack/react-query" import { fetchModels } from "~services/ollama" import { useMessageOption } from "~hooks/useMessageOption" -import { PanelLeftIcon, Settings2 } from "lucide-react" +import { GithubIcon, PanelLeftIcon, Settings2, SquarePen } from "lucide-react" import { Settings } from "./Settings" import { useDarkMode } from "~hooks/useDarkmode" @@ -65,8 +65,7 @@ export default function OptionLayout({ queryFn: fetchModels }) - const { selectedModel, setSelectedModel } = useMessageOption() - + const { selectedModel, setSelectedModel, clearChat } = useMessageOption() return ( @@ -79,14 +78,30 @@ export default function OptionLayout({ +
+ +
+ + {"/"} +
- + className="shrink-0 flex-grow flex flex-col items-center "> + +