Skip to content

Commit

Permalink
fix(achievementInfo): restyle unlocked date label for better mobile s…
Browse files Browse the repository at this point in the history
…upport (#1621)
  • Loading branch information
wescopeland authored Jul 1, 2023
1 parent e2a281b commit 199f7db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/achievementInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function ResetProgress() {
$fileSuffix = ($user == "" || !$achievedLocal) ? '_lock' : '';
$badgeFullPath = media_asset("Badge/$badgeName$fileSuffix.png");

echo "<table class='nicebox'><tbody>";
echo "<table class='nicebox mb-1'><tbody>";

$descAttr = attributeEscape($desc);
echo "<tr>";
Expand All @@ -201,7 +201,7 @@ function ResetProgress() {

$renderedTitle = renderAchievementTitle($achievementTitle);

echo "<div class='flex justify-between'>";
echo "<div class='flex flex-col justify-between gap-y-2'>";
echo "<div>";
echo "<a href='/achievement/$achievementID'><strong>$renderedTitle</strong></a>";
if ($achPoints !== 0) {
Expand All @@ -212,7 +212,7 @@ function ResetProgress() {
echo "</div>";
if ($achievedLocal) {
$niceDateWon = date("d M, Y H:i", strtotime($dateWonLocal));
echo "<div class='text-right' class='smalldate'>Unlocked on<br>$niceDateWon</div>";
echo "<div class='date smalltext'>Unlocked $niceDateWon</div>";
}
echo "</div>";

Expand Down

0 comments on commit 199f7db

Please sign in to comment.