Vertically align avatars with labels in people panel

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-09-21 15:09:31 -07:00
co-authored by Nathan Sobo
parent 6d0b84a467
commit b576397610
3 changed files with 66 additions and 35 deletions
+5
View File
@@ -25,6 +25,11 @@ impl Align {
self
}
pub fn left(mut self) -> Self {
self.alignment.set_x(-1.0);
self
}
pub fn right(mut self) -> Self {
self.alignment.set_x(1.0);
self
+4 -4
View File
@@ -19,13 +19,13 @@ pub struct Image {
#[derive(Copy, Clone, Default, Deserialize)]
pub struct ImageStyle {
#[serde(default)]
border: Border,
pub border: Border,
#[serde(default)]
corner_radius: f32,
pub corner_radius: f32,
#[serde(default)]
height: Option<f32>,
pub height: Option<f32>,
#[serde(default)]
width: Option<f32>,
pub width: Option<f32>,
}
impl Image {