Skip to content

Commit 577949c

Browse files
committed
Update app version display style for consistency and improved aesthetics
1 parent b49cca5 commit 577949c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
cp -r main-content/* _site/ 2>/dev/null || true
5050
5151
# MAIN: inject release version into root site
52-
sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">'"${RELEASE_VERSION}"'</span>|' _site/index.html
52+
sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0">'"${RELEASE_VERSION}"'</span>|' _site/index.html
5353
sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "'"${RELEASE_VERSION}"'";|' _site/content/wardrive.js
5454
5555
# DEV: copy dev site under /dev
@@ -59,7 +59,7 @@ jobs:
5959
6060
# DEV: inject DEV-EPOCH
6161
DEV_EPOCH=$(date -u +%s)
62-
sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">DEV-'"${DEV_EPOCH}"'</span>|' _site/dev/index.html
62+
sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0">DEV-'"${DEV_EPOCH}"'</span>|' _site/dev/index.html
6363
sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js
6464
6565
find _site -name ".git" -exec rm -rf {} + 2>/dev/null || true

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 class="flex items-center gap-3 text-lg sm:text-xl font-bold truncate min-w-0
4040
<img class="h-12 w-12 sm:h-14 sm:w-14 flex-shrink-0" src="content/wardrive.png" alt="MeshCore" />
4141
<span class="truncate">MeshMapper</span>
4242
</h1>
43-
<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 text-slate-400 flex-shrink-0" style="padding: 0.25rem 0.5rem; border-radius: 9999px;">v1.0</span>
43+
<span id="appVersion" class="text-xs bg-slate-800 border border-slate-700 px-2 py-1 rounded-full text-slate-400 flex-shrink-0">v1.0</span>
4444
</header>
4545

4646
<!-- Connection Status Bar with Settings Panel -->

0 commit comments

Comments
 (0)