Merge pull request #1770 from xKevIsDev/enhancements
Some checks failed
Docker Publish / docker-build-publish (push) Has been cancelled
Update Stable Branch / prepare-release (push) Has been cancelled
Mark Stale Issues and Pull Requests / stale (push) Has been cancelled

fix: add binary file detection support
This commit is contained in:
KevIsDev 2025-06-12 16:24:32 +01:00 committed by GitHub
commit d0d9818964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
export function BinaryContent() {
return (
<div className="flex items-center justify-center absolute inset-0 z-10 text-sm bg-tk-elements-app-backgroundColor text-tk-elements-app-textColor">
<div className="flex items-center justify-center absolute inset-0 z-10 text-sm bg-bolt-elements-background-depth-2 text-bolt-elements-textPrimary">
File format cannot be displayed.
</div>
);

View File

@ -50,6 +50,7 @@ export class EditorStore {
{
value: dirent.content,
filePath,
isBinary: dirent.isBinary, // Add this line
scroll: previousDocument?.scroll,
},
] as [string, EditorDocument];