fixed rendering of podcast section on admin/home for both desktop and mobile
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user