Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: small changes

Ilian Sapundshievd4d247a93dee
diff --git a/src/renderer/components/chat/ChatView.tsx b/src/renderer/components/chat/ChatView.tsx
index 799522923..c6b99e768 100644
--- a/src/renderer/components/chat/ChatView.tsx
+++ b/src/renderer/components/chat/ChatView.tsx
@@ -254,9 +254,9 @@ function ChatView() {
</Grid>
{/* Images and chat input */}
<Grid container spacing={1} direction="column">
- <Grid>
- {images.length > 0 &&
- images.map((image, index) => (
+ {images.length > 0 && (
+ <Grid>
+ {images.map((image, index) => (
<Box
key={image.uuid}
position="relative"
@@ -288,7 +288,8 @@ function ChatView() {
</TsIconButton>
</Box>
))}
- </Grid>
+ </Grid>
+ )}
<Grid>
<ChatDndTargetFile accepts={[FILE, DragItemTypes.FILE]}>
<FormControl fullWidth>
diff --git a/src/renderer/components/dialogs/FilePreviewDialog.tsx b/src/renderer/components/dialogs/FilePreviewDialog.tsx
index 1e8f8fe23..b16a3a8a1 100644
--- a/src/renderer/components/dialogs/FilePreviewDialog.tsx
+++ b/src/renderer/components/dialogs/FilePreviewDialog.tsx
@@ -171,6 +171,7 @@ function FilePreviewDialog(props: Props) {
fileViewer={fileViewer}
fileViewerContainer={fileViewerContainer}
handleMessage={handleMessage}
+ height="calc(100% - 20px)"
/>
</DialogContent>
</Dialog>