Use a better message for the InvalidBufferView (#36770)

Follow-up of https://github.com/zed-industries/zed/pull/36764

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-08-22 23:09:37 +03:00 committed by GitHub
parent 18ac4ac5ef
commit 4560d1ec58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ impl Render for InvalidBufferView {
v_flex()
.justify_center()
.gap_2()
.child("Cannot display the file contents in Zed")
.child(h_flex().justify_center().child("Unsupported file type"))
.when(self.is_local, |contents| {
contents.child(
h_flex().justify_center().child(