Skip to content

Commit

Permalink
fixed rendering of podcast section on admin/home for both desktop and…
Browse files Browse the repository at this point in the history
… mobile
  • Loading branch information
brian-doherty committed May 15, 2022
1 parent 4fce8e6 commit 64d8e01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/assets/pages/home.tmpl
Expand Up @@ -177,15 +177,15 @@
<div class="box-description text-light">
<p>you can add podcasts rss feeds here</p>
</div>
<div class="block-right">
<div>
<table id="podcast-preferences">
{{ range $pref := .Podcasts }}
<tr>
<form id="podcast-{{ $pref.ID }}-download" action="{{ printf "/admin/download_podcast_do?id=%d" $pref.ID | path }}" method="post"></form>
<form id="podcast-{{ $pref.ID }}-auto-download" action="{{ printf "/admin/update_podcast_do?id=%d" $pref.ID | path }}" method="post"></form>
<form id="podcast-{{ $pref.ID }}-delete" action="{{ printf "/admin/delete_podcast_do?id=%d" $pref.ID | path }}" method="post"></form>
<td>{{ $pref.Title }}</td>
<td><select form="podcast-{{ $pref.ID }}-auto-download" name="setting">
<td class="text-full">{{ $pref.Title }}</td>
<td><select class="no-small" form="podcast-{{ $pref.ID }}-auto-download" name="setting">
{{ if eq $pref.AutoDownload "latest" }}
<option value="latest" selected="selected">download latest</option>
<option value="none">no auto download</option>
Expand All @@ -194,7 +194,7 @@
<option value="latest">download latest</option>
{{ end }}
</select></td>
<td><input form="podcast-{{ $pref.ID }}-download" type="submit" value="download all"></td>
<td><input class="no-small" form="podcast-{{ $pref.ID }}-download" type="submit" value="download all"></td>
<td><input form="podcast-{{ $pref.ID }}-auto-download" type="submit" value="save"></td>
<td><input form="podcast-{{ $pref.ID }}-delete" type="submit" value="delete"></td>
</tr>
Expand Down
8 changes: 8 additions & 0 deletions server/assets/static/main.css
Expand Up @@ -57,6 +57,10 @@ input[type="password"] {
width: 100%;
}

input[type="submit"] {
width: fit-content;
}

form.block {
max-width: var(--width-form);
margin-left: auto;
Expand Down Expand Up @@ -155,6 +159,10 @@ a:hover {
color: #444;
}

.text-full {
width: 100%;
}

.block-right > * {
margin-left: auto;
}
Expand Down

0 comments on commit 64d8e01

Please sign in to comment.