fixed rendering of podcast section on admin/home for both desktop and mobile

This commit is contained in:
brian-doherty
2022-05-15 09:08:17 -05:00
committed by GitHub
parent 4fce8e67ce
commit 64d8e014b3
2 changed files with 12 additions and 4 deletions

View File

@@ -177,15 +177,15 @@
<div class="box-description text-light"> <div class="box-description text-light">
<p>you can add podcasts rss feeds here</p> <p>you can add podcasts rss feeds here</p>
</div> </div>
<div class="block-right"> <div>
<table id="podcast-preferences"> <table id="podcast-preferences">
{{ range $pref := .Podcasts }} {{ range $pref := .Podcasts }}
<tr> <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 }}-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 }}-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> <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 class="text-full">{{ $pref.Title }}</td>
<td><select form="podcast-{{ $pref.ID }}-auto-download" name="setting"> <td><select class="no-small" form="podcast-{{ $pref.ID }}-auto-download" name="setting">
{{ if eq $pref.AutoDownload "latest" }} {{ if eq $pref.AutoDownload "latest" }}
<option value="latest" selected="selected">download latest</option> <option value="latest" selected="selected">download latest</option>
<option value="none">no auto download</option> <option value="none">no auto download</option>
@@ -194,7 +194,7 @@
<option value="latest">download latest</option> <option value="latest">download latest</option>
{{ end }} {{ end }}
</select></td> </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 }}-auto-download" type="submit" value="save"></td>
<td><input form="podcast-{{ $pref.ID }}-delete" type="submit" value="delete"></td> <td><input form="podcast-{{ $pref.ID }}-delete" type="submit" value="delete"></td>
</tr> </tr>

View File

@@ -57,6 +57,10 @@ input[type="password"] {
width: 100%; width: 100%;
} }
input[type="submit"] {
width: fit-content;
}
form.block { form.block {
max-width: var(--width-form); max-width: var(--width-form);
margin-left: auto; margin-left: auto;
@@ -155,6 +159,10 @@ a:hover {
color: #444; color: #444;
} }
.text-full {
width: 100%;
}
.block-right > * { .block-right > * {
margin-left: auto; margin-left: auto;
} }