diff --git a/frontend/libs/components/promptbox/src/lib/CharactersModal.tsx b/frontend/libs/components/promptbox/src/lib/CharactersModal.tsx
index 0f1b6928b7..06444c1292 100644
--- a/frontend/libs/components/promptbox/src/lib/CharactersModal.tsx
+++ b/frontend/libs/components/promptbox/src/lib/CharactersModal.tsx
@@ -5,7 +5,6 @@ import {
faPlus,
faArrowLeft,
faUpload,
- faTrash,
faUserGroup,
faSpinnerThird,
faImages,
@@ -54,8 +53,7 @@ export const CharactersModal = ({
isOpen={isOpen}
onClose={handleClose}
title={view === "list" ? "Characters" : undefined}
- width={680}
- className="max-h-[80vh] flex flex-col overflow-hidden"
+ className="max-w-[800px] min-h-[600px] max-h-[60vh] flex flex-col overflow-hidden"
>
{view === "list" ? (
@@ -155,69 +153,66 @@ const CharacterListView = ({
return (
- {loading && characters.length === 0 ? (
-
-
-
Loading characters...
-
- ) : (
-
- {/* Create New card */}
+ {loading && characters.length === 0 ? (
+
+
+
Loading characters...
+
+ ) : (
+
+ {/* Create New card */}
+
+
+ {characters.map((character) => (
- )}
-
- {/* Sentinel for infinite scroll */}
- {hasMore && (
-
-
-
- )}
+ {/* Sentinel for infinite scroll */}
+ {hasMore && (
+
+
+
+ )}
);
};
@@ -243,7 +238,9 @@ const NewCharacterView = ({
const dropZoneRef = useRef
(null);
const [isDragging, setIsDragging] = useState(false);
const [isGalleryOpen, setIsGalleryOpen] = useState(false);
- const [selectedGalleryImages, setSelectedGalleryImages] = useState([]);
+ const [selectedGalleryImages, setSelectedGalleryImages] = useState(
+ [],
+ );
const processFiles = useCallback(
async (files: FileList | File[]) => {
@@ -257,7 +254,9 @@ const NewCharacterView = ({
// Only keep the first file (single image)
const file = imageFiles[0]!;
- const newImages: UploadedImage[] = [{ file, url: URL.createObjectURL(file) }];
+ const newImages: UploadedImage[] = [
+ { file, url: URL.createObjectURL(file) },
+ ];
// Replace any existing image
setImages((prev) => {
@@ -428,7 +427,10 @@ const NewCharacterView = ({
onClick={() => fileInputRef.current?.click()}
>
{images.length > 0 ? (
- e.stopPropagation()}>
+
e.stopPropagation()}
+ >

Click or drag an image here
-
e.stopPropagation()}>
+
e.stopPropagation()}
+ >
setIsGalleryOpen(true)}
className="flex items-center gap-2 rounded-lg bg-white/10 px-3 py-1.5 text-sm text-white/80 transition-colors hover:bg-white/20"