Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Expand the gutter width to contain new timestamp format (#59008)

Xin Zhao325ff16742c8
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 1dcb2180809..70568a66c46 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -11377,7 +11377,7 @@ impl EditorSnapshot {
self.git_blame_gutter_max_author_length
.map(|max_author_length| {
let renderer = cx.global::<GlobalBlameRenderer>().0.clone();
- const MAX_RELATIVE_TIMESTAMP: &str = "60 minutes ago";
+ const MAX_RELATIVE_TIMESTAMP: &str = "2 years, 11 months ago";
/// The number of characters to dedicate to gaps and margins.
const SPACING_WIDTH: usize = 4;