Skip to content

Commit

Permalink
fix: fix out of bounds error message for long filenames (Issue #465) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kezik authored Jan 5, 2024
1 parent 3a9fda5 commit eda241a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Common/ErrorMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const ErrorMessage = ({ error }: Props) => {
<span className="flex shrink-0 items-center">
<IconExclamationCircle size={24} />
</span>
<span className="whitespace-pre-wrap">{error}</span>
<span className="truncate whitespace-pre-wrap">{error}</span>
</div>
);
};
2 changes: 1 addition & 1 deletion src/components/Files/FileManagerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const FileManagerModal = ({

<ErrorMessage error={errorMessage} />

{!showSpinner ? (
{showSpinner ? (
<div className="flex min-h-[300px] items-center justify-center">
<Spinner />
</div>
Expand Down

0 comments on commit eda241a

Please sign in to comment.