fix(context_drawer): title alignment

Something caused text alignment to break, so this gets around it by wrapping the text in a container.
This commit is contained in:
Vukašin Vojinović 2025-09-11 16:37:42 +02:00 committed by Ashley Wulber
parent 31aa0bd3df
commit e568122083
3 changed files with 7 additions and 7 deletions

View file

@ -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" }

View file

@ -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"

View file

@ -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() {