Skip to content

Commit f7c679c

Browse files
committed
🎨 Adjust layout for buttons on mobile
1 parent a281292 commit f7c679c

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

by-type.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ <h1>🔍 GitHub Issues Tracker</h1>
6666
</div>
6767

6868
<div style="margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;">
69-
<button id="loadBtn" style="flex: 0 0 auto;">Load Issues & PRs</button>
69+
<button id="loadBtn" style="flex: 1 1 100%; max-width: 400px;">Load Issues & PRs</button>
70+
</div>
71+
<div style="margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;">
7072
<button id="clearCacheBtn" style="background: #6e7681; flex: 0 0 auto;">Clear Cache</button>
7173
<button id="shareBtn" style="background: #238636; flex: 0 0 auto;">🔗 Share URL</button>
7274
</div>

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ <h1>🔍 GitHub Issues Tracker</h1>
6666
</div>
6767

6868
<div style="margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;">
69-
<button id="loadBtn" style="flex: 0 0 auto;">Load Issues & PRs</button>
69+
<button id="loadBtn" style="flex: 1 1 100%; max-width: 400px;">Load Issues & PRs</button>
70+
</div>
71+
<div style="margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;">
7072
<button id="clearCacheBtn" style="background: #6e7681; flex: 0 0 auto;">Clear Cache</button>
7173
<button id="shareBtn" style="background: #238636; flex: 0 0 auto;">🔗 Share URL</button>
7274
</div>

styles.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,28 @@ button:disabled {
687687
}
688688

689689
@media (max-width: 768px) {
690+
/* View switcher: 2 buttons per row on mobile */
691+
.view-switcher {
692+
gap: 8px;
693+
}
694+
695+
.view-btn {
696+
flex: 0 0 calc(50% - 4px);
697+
min-width: 0;
698+
padding: 8px 12px;
699+
font-size: 13px;
700+
text-align: center;
701+
display: flex;
702+
align-items: center;
703+
justify-content: center;
704+
}
705+
706+
/* Action buttons: Clear Cache and Share URL share 50% each */
707+
#clearCacheBtn,
708+
#shareBtn {
709+
flex: 0 0 calc(50% - 5px) !important;
710+
}
711+
690712
.cache-detail-item {
691713
flex-direction: column;
692714
gap: 4px;

0 commit comments

Comments
 (0)