From e568122083ebc42d11e82b95ecc2e233c00554f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Thu, 11 Sep 2025 16:37:42 +0200 Subject: [PATCH] fix(context_drawer): title alignment Something caused text alignment to break, so this gets around it by wrapping the text in a container. --- Cargo.toml | 8 ++++---- cosmic-config/Cargo.toml | 2 +- src/widget/context_drawer/widget.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 076fc00..5d22afc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -104,7 +104,7 @@ async-fs = { version = "2.1", optional = true } async-std = { version = "1.13", optional = true } auto_enums = "0.8.7" cctk = { git = "https://github.com/pop-os/cosmic-protocols", package = "cosmic-client-toolkit", rev = "6254f50", optional = true } -chrono = "0.4.41" +chrono = "0.4.42" cosmic-config = { path = "cosmic-config" } cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true } # Internationalization @@ -129,7 +129,7 @@ raw-window-handle = "0.6" rfd = { version = "0.15.4", default-features = false, features = [ "xdg-portal", ], optional = true } -rustix = { version = "1.0", features = ["pipe", "process"], optional = true } +rustix = { version = "1.1", features = ["pipe", "process"], optional = true } serde = { version = "1.0.219", features = ["derive"] } slotmap = "1.0.7" smol = { version = "2.0.2", optional = true } @@ -138,13 +138,13 @@ tokio = { version = "1.47.1", optional = true } tracing = "0.1.41" unicode-segmentation = "1.12" url = "2.5.7" -zbus = { version = "5.10.0", default-features = false, optional = true } +zbus = { version = "5.11.0", default-features = false, optional = true } # Enable DBus feature on Linux targets [target.'cfg(target_os = "linux")'.dependencies] cosmic-config = { path = "cosmic-config", features = ["dbus"] } cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings" } -zbus = { version = "5.10.0", default-features = false } +zbus = { version = "5.11.0", default-features = false } [target.'cfg(unix)'.dependencies] freedesktop-icons = { package = "cosmic-freedesktop-icons", git = "https://github.com/pop-os/freedesktop-icons" } diff --git a/cosmic-config/Cargo.toml b/cosmic-config/Cargo.toml index e838f9b..9b5aca0 100644 --- a/cosmic-config/Cargo.toml +++ b/cosmic-config/Cargo.toml @@ -11,7 +11,7 @@ subscription = ["iced_futures"] [dependencies] cosmic-settings-daemon = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true } -zbus = { version = "5.10.0", default-features = false, optional = true } +zbus = { version = "5.11.0", default-features = false, optional = true } atomicwrites = { git = "https://github.com/jackpot51/rust-atomicwrites" } calloop = { version = "0.14.3", optional = true } notify = "8.2.0" diff --git a/src/widget/context_drawer/widget.rs b/src/widget/context_drawer/widget.rs index b46f601..c65fe08 100644 --- a/src/widget/context_drawer/widget.rs +++ b/src/widget/context_drawer/widget.rs @@ -61,8 +61,8 @@ impl<'a, Message: Clone + 'static> ContextDrawer<'a, Message> { let title = title.map(|title| { text::heading(title) - .width(Length::FillPortion(title_portion)) - .center() + .apply(container) + .center_x(Length::FillPortion(title_portion)) }); let (actions_width, close_width) = if title.is_some() {