utilities: size fixes
This commit is contained in:
parent
423ca87181
commit
84dc5a3593
3 changed files with 4 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ JsonObject {
|
|||
|
||||
component Sizes: JsonObject {
|
||||
property int width: 430
|
||||
property int toastWidth: 430
|
||||
}
|
||||
|
||||
component Toasts: JsonObject {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Item {
|
|||
|
||||
visible: height > 0
|
||||
implicitHeight: 0
|
||||
implicitWidth: Math.max(sidebar.width, Config.utilities.sizes.width)
|
||||
implicitWidth: sidebar.visible ? sidebar.width : Config.utilities.sizes.width
|
||||
|
||||
onStateChanged: {
|
||||
if (state === "visible" && timer.running) {
|
||||
|
|
@ -86,7 +86,7 @@ Item {
|
|||
active: true
|
||||
|
||||
sourceComponent: Content {
|
||||
implicitWidth: Config.utilities.sizes.width - Appearance.padding.large * 2
|
||||
implicitWidth: root.implicitWidth - Appearance.padding.large * 2
|
||||
props: root.props
|
||||
visibilities: root.visibilities
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import qs.config
|
|||
import Caelestia
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
@ -13,7 +12,7 @@ Item {
|
|||
readonly property int spacing: Appearance.spacing.small
|
||||
property bool flag
|
||||
|
||||
implicitWidth: Config.utilities.sizes.width - Appearance.padding.normal * 2
|
||||
implicitWidth: Config.utilities.sizes.toastWidth - Appearance.padding.normal * 2
|
||||
implicitHeight: {
|
||||
let h = -spacing;
|
||||
for (let i = 0; i < repeater.count; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue