Skip to content

Commit

Permalink
Minor Format Updates
Browse files Browse the repository at this point in the history
Make table fit on small screens
  • Loading branch information
TheWicklowWolf authored Nov 7, 2023
1 parent 03ddeb5 commit 4cf2c61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function renderChannels() {
row.innerHTML = `
<td>${channel.Name}</td>
<td>${channel.Last_Synced}</td>
<td>${channel.Video_Count}</td>
<td class="text-center">${channel.Video_Count}</td>
<td>
<button class="btn btn-sm btn-primary custom-button-width" data-bs-toggle="modal" data-bs-target="#editModal${index}">Edit</button>
</td>
Expand Down
3 changes: 3 additions & 0 deletions src/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ body {
}

@media screen and (max-width: 600px) {
.container{
max-height: 75vh;
}
h1{
margin-bottom: 0.1rem!important;
}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ <h5 class="modal-title" id="modal-label">Configuration</h5>
</div>
</div>

<div class="container mt-4">
<div class="container px-1 mt-4">
<table class="table">
<thead class="sticky-top top-0">
<tr>
<th>Channel Name</th>
<th>Last Synced</th>
<th>Number of Videos</th>
<th>Videos</th>
<th>Actions</th>
</tr>
</thead>
Expand Down

0 comments on commit 4cf2c61

Please sign in to comment.