mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Merge pull request #1770 from xKevIsDev/enhancements
fix: add binary file detection support
This commit is contained in:
commit
d0d9818964
@ -1,6 +1,6 @@
|
|||||||
export function BinaryContent() {
|
export function BinaryContent() {
|
||||||
return (
|
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.
|
File format cannot be displayed.
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -50,6 +50,7 @@ export class EditorStore {
|
|||||||
{
|
{
|
||||||
value: dirent.content,
|
value: dirent.content,
|
||||||
filePath,
|
filePath,
|
||||||
|
isBinary: dirent.isBinary, // Add this line
|
||||||
scroll: previousDocument?.scroll,
|
scroll: previousDocument?.scroll,
|
||||||
},
|
},
|
||||||
] as [string, EditorDocument];
|
] as [string, EditorDocument];
|
||||||
|
Loading…
Reference in New Issue
Block a user