T19 round 1 fixes
- merges keep each line's ending and the last newline; resolve keeps every other byte - the split view numbers each side from its own file - hunk headers come from similar's UnifiedHunkHeader: an empty side starts before its range - the commit subject counter sits in the input's suffix - clipped code rows in diffs, merges, blame and review set their line height - gallery: scripted split view and a long subject
This commit is contained in:
1 parent
950f17636c
commit
75656358cf
11 files changed
+173
-73
No files matched your search
+3
-2
@@ -3,7 +3,7 @@ use std::rc::Rc;
|
||||
use gpui::{
|
||||
AnyElement, App, ElementId, Entity, FontWeight, Hsla, InteractiveElement, IntoElement,
|
||||
ParentElement, RenderOnce, SharedString, StatefulInteractiveElement, Styled, Window, div,
|
||||
prelude::*,
|
||||
prelude::*, relative,
|
||||
};
|
||||
|
||||
use super::badges::DiffStat;
|
||||
@@ -13,7 +13,7 @@ use crate::{
|
||||
forms::{Input, TextInput},
|
||||
primitives::{Icon, IconName},
|
||||
theme::{ActiveTheme, AvatarSize, ControlSize, IconSize, Palette, Radius, TextSize},
|
||||
typography::{Ellipsis, format},
|
||||
typography::{Ellipsis, LEADING, format},
|
||||
};
|
||||
|
||||
type Run = Rc<dyn Fn(&mut Window, &mut App)>;
|
||||
@@ -359,6 +359,7 @@ impl RenderOnce for ReviewComment {
|
||||
.text_size(theme.text_size(TextSize::Xs))
|
||||
.whitespace_nowrap()
|
||||
.overflow_hidden()
|
||||
.line_height(relative(LEADING))
|
||||
.child(format!("{} {}", self.line, self.code)),
|
||||
)
|
||||
.children(notes)
|
||||
|
||||
Reference in new issue
Block a user