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

Fix 2nd tier expansion

This commit is contained in:
purian23
2025-07-23 17:40:00 -04:00
parent 4f63d5899b
commit bb2a410039
2 changed files with 209 additions and 169 deletions

View File

@@ -71,7 +71,7 @@ PanelWindow {
if (expanded && modelData.count >= 1) {
const baseHeight = (116 * modelData.count) + (12 * (modelData.count - 1));
// Add extra bottom margin for View/Dismiss buttons when there are fewer than 3 messages
const bottomMargin = modelData.count === 1 ? 70 : (modelData.count < 3 ? 50 : 0);
const bottomMargin = modelData.count === 1 ? 70 : (modelData.count < 3 ? 50 : -25);
return baseHeight + bottomMargin;
}
return 116;