Make chat font sizes consistently small
This commit is contained in:
parent
df2b0f6d2e
commit
5dee8914ed
2 changed files with 7 additions and 9 deletions
|
@ -349,15 +349,13 @@ impl ChatPanel {
|
||||||
.when(!is_continuation_from_previous, |this| {
|
.when(!is_continuation_from_previous, |this| {
|
||||||
this.pt_3().child(
|
this.pt_3().child(
|
||||||
h_flex()
|
h_flex()
|
||||||
.child(
|
.text_ui_sm()
|
||||||
div().absolute().child(
|
.child(div().absolute().child(
|
||||||
Avatar::new(message.sender.avatar_uri.clone())
|
Avatar::new(message.sender.avatar_uri.clone()).size(cx.rem_size()),
|
||||||
.size(cx.rem_size() * 1.5),
|
))
|
||||||
),
|
|
||||||
)
|
|
||||||
.child(
|
.child(
|
||||||
div()
|
div()
|
||||||
.pl(cx.rem_size() * 1.5 + px(6.0))
|
.pl(cx.rem_size() + px(6.0))
|
||||||
.pr(px(8.0))
|
.pr(px(8.0))
|
||||||
.font_weight(FontWeight::BOLD)
|
.font_weight(FontWeight::BOLD)
|
||||||
.child(Label::new(message.sender.github_login.clone())),
|
.child(Label::new(message.sender.github_login.clone())),
|
||||||
|
|
|
@ -13,7 +13,7 @@ use lazy_static::lazy_static;
|
||||||
use project::search::SearchQuery;
|
use project::search::SearchQuery;
|
||||||
use settings::Settings;
|
use settings::Settings;
|
||||||
use theme::ThemeSettings;
|
use theme::ThemeSettings;
|
||||||
use ui::prelude::*;
|
use ui::{prelude::*, UiTextSize};
|
||||||
|
|
||||||
const MENTIONS_DEBOUNCE_INTERVAL: Duration = Duration::from_millis(50);
|
const MENTIONS_DEBOUNCE_INTERVAL: Duration = Duration::from_millis(50);
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ impl Render for MessageEditor {
|
||||||
},
|
},
|
||||||
font_family: settings.ui_font.family.clone(),
|
font_family: settings.ui_font.family.clone(),
|
||||||
font_features: settings.ui_font.features,
|
font_features: settings.ui_font.features,
|
||||||
font_size: rems(0.875).into(),
|
font_size: UiTextSize::Small.rems().into(),
|
||||||
font_weight: FontWeight::NORMAL,
|
font_weight: FontWeight::NORMAL,
|
||||||
font_style: FontStyle::Normal,
|
font_style: FontStyle::Normal,
|
||||||
line_height: relative(1.3).into(),
|
line_height: relative(1.3).into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue