Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

fix: small layout inconsistencies on the dashboard

Miguel Ribeiro19d30672b263
diff --git a/images/uploads/icons/banktransfer.png b/images/uploads/icons/banktransfer.png
index 91ad85a..e3436fa 100644
Binary files a/images/uploads/icons/banktransfer.png and b/images/uploads/icons/banktransfer.png differ
diff --git a/includes/list_subscriptions.php b/includes/list_subscriptions.php
index 652cebb..dbd5299 100644
--- a/includes/list_subscriptions.php
+++ b/includes/list_subscriptions.php
@@ -16,7 +16,8 @@ function getBillingCycle($cycle, $frequency, $i18n)
}
}
-function getSubscriptionProgress($cycle, $frequency, $next_payment) {
+function getSubscriptionProgress($cycle, $frequency, $next_payment)
+{
$nextPaymentDate = new DateTime($next_payment);
$currentDate = new DateTime('now');
@@ -31,7 +32,7 @@ function getSubscriptionProgress($cycle, $frequency, $next_payment) {
$paymentCycleDays = 365 * $frequency;
}
- $lastPaymentDate = clone $nextPaymentDate;
+ $lastPaymentDate = clone $nextPaymentDate;
$lastPaymentDate->modify("-$paymentCycleDays days");
$totalCycleDays = $lastPaymentDate->diff($nextPaymentDate)->days;
@@ -198,10 +199,7 @@ function printSubscriptions($subscriptions, $sort, $categories, $members, $i18n,
</span>
<span class="next"><?= $subscription['next_payment'] ?></span>
<span class="price">
- <span class="payment_method">
- <img src="<?= $subscription['payment_method_icon'] ?>"
- title="<?= translate('payment_method', $i18n) ?>: <?= $subscription['payment_method_name'] ?>" />
- </span>
+
<span class="value">
<?= CurrencyFormatter::format($subscription['price'], $subscription['currency_code']) ?>
<?php
@@ -213,6 +211,11 @@ function printSubscriptions($subscriptions, $sort, $categories, $members, $i18n,
}
?>
</span>
+
+ </span>
+ <span class="payment_method">
+ <img src="<?= $subscription['payment_method_icon'] ?>"
+ title="<?= translate('payment_method', $i18n) ?>: <?= $subscription['payment_method_name'] ?>" />
</span>
<?php
$desktopMenuButtonClass = ""; {
diff --git a/includes/version.php b/includes/version.php
index c5b9379..dfeb931 100644
--- a/includes/version.php
+++ b/includes/version.php
@@ -1,3 +1,3 @@
<?php
-$version = "v2.47.0";
+$version = "v2.47.1";
?>
\ No newline at end of file
diff --git a/styles/styles.css b/styles/styles.css
index 89e90ab..e54c890 100644
--- a/styles/styles.css
+++ b/styles/styles.css
@@ -408,6 +408,8 @@ button.mobile-action-renew {
cursor: pointer;
position: relative;
transition: transform 0.2s;
+ box-sizing: border-box;
+ justify-content: center;
}
.subscription-container.hide {
@@ -421,7 +423,7 @@ button.mobile-action-renew {
right: 8px;
height: 3px;
z-index: 1;
-}
+}
.subscription-container>.subscription-progress-container>.subscription-progress {
height: 3px;
@@ -440,12 +442,17 @@ button.mobile-action-renew {
text-decoration: line-through;
}
+.subscription.inactive .payment_method img {
+ opacity: 0.4;
+}
+
.subscription-main {
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
position: relative;
+ min-height: 40px;
}
.subscription-main .actions-expand {
@@ -578,7 +585,7 @@ button.mobile-action-renew {
align-items: center;
}
-.subscription .cycle > svg {
+.subscription .cycle>svg {
width: 15px;
height: 15px;
margin-right: 3px;
@@ -590,23 +597,29 @@ button.mobile-action-renew {
flex-grow: 1;
}
+.subscription .payment_method {
+ margin-left: 10px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.subscription .payment_method img {
- width: 45px;
+ width: 44px;
height: 30px;
aspect-ratio: 3 / 2;
object-fit: contain;
- margin-right: 12px;
}
.rtl .subscription .payment_method img {
- margin-right: 0px;
- margin-left: 12px;
+ margin-right: 10px;
+ margin-left: 0px;
}
.subscription .price {
flex-basis: 8%;
- justify-content: flex-start;
+ justify-content: center;
flex-direction: row;
}
@@ -2691,7 +2704,7 @@ input[type="radio"]:checked+label::after {
.mobile-nav-image {
width: 100%;
max-width: 440px;
- margin-top: 15px;
+ margin-top: 15px;
background-image: url("../images/siteimages/mobilenav.png");
background-size: contain;
background-position: center;