Vertically align avatars with labels in people panel
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
6d0b84a467
commit
b576397610
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user