1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

Fix toast width

This commit is contained in:
bbedward
2025-10-06 19:42:22 -04:00
parent 0b11fb2fd5
commit 8ef125bed2
2 changed files with 4 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ PanelWindow {
}
}
width: shouldBeVisible ? (ToastService.hasDetails ? 380 : 350) : frozenWidth
width: Math.min(900, messageText.implicitWidth + statusIcon.width + Theme.spacingM + (ToastService.hasDetails ? (expandButton.width + closeButton.width + 4) : 0) + Theme.spacingL * 2 + Theme.spacingM * 2)
height: toastContent.height + Theme.spacingL * 2
anchors.horizontalCenter: parent.horizontalCenter
y: Theme.barHeight - 4 + SettingsData.dankBarSpacing + 2
@@ -99,7 +99,7 @@ PanelWindow {
Item {
width: parent.width
height: Theme.iconSize + 8
height: Math.max(Theme.iconSize + 8, messageText.implicitHeight)
DankIcon {
id: statusIcon
@@ -146,10 +146,8 @@ PanelWindow {
anchors.left: statusIcon.right
anchors.leftMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
anchors.right: ToastService.hasDetails ? expandButton.left : closeButton.left
anchors.rightMargin: Theme.spacingM
width: implicitWidth
wrapMode: Text.NoWrap
elide: Text.ElideRight
}
DankActionButton {

View File

@@ -6,7 +6,7 @@
[![GitHub License](https://img.shields.io/github/license/AvengeMedia/DankMaterialShell?style=for-the-badge&labelColor=101418&color=b9c8da)](https://github.com/AvengeMedia/DankMaterialShell/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/AvengeMedia/DankMaterialShell?style=for-the-badge&labelColor=101418&color=9ccbfb)](https://github.com/AvengeMedia/DankMaterialShell/releases)
[![GitHub last commit](https://img.shields.io/github/last-commit/AvengeMedia/DankMaterialShell?style=for-the-badge&labelColor=101418&color=9ccbfb)](https://github.com/AvengeMedia/DankMaterialShell/commits/master)
[![AUR version](https://img.shields.io/aur/version/dms-shell?style=for-the-badge&labelColor=101418&color=9ccbfb)](https://aur.archlinux.org/packages/dms-shell)
[![AUR version](https://img.shields.io/aur/version/dms-shell-bin?style=for-the-badge&labelColor=101418&color=9ccbfb)](https://aur.archlinux.org/packages/dms-shell-bin)
[![AUR version (git)](https://img.shields.io/aur/version/dms-shell-git?style=for-the-badge&labelColor=101418&color=9ccbfb&label=AUR%20(git))](https://aur.archlinux.org/packages/dms-shell-git)
</div>