Merge pull request #147 from Frooodle/hotfix

Minor fixes
This commit is contained in:
Anthony Stirling 2023-05-13 13:27:37 +01:00 committed by GitHub
commit 2b7e97a09f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 31 additions and 11 deletions

View file

@ -21,6 +21,9 @@ false=\u062E\u0637\u0623
unknown=\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641 unknown=\u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641
save=\u062D\u0641\u0638 save=\u062D\u0641\u0638
close=\u0625\u063A\u0644\u0627\u0642 close=\u0625\u063A\u0644\u0627\u0642
filesSelected = الملفات المحددة
noFavourites = لم تتم إضافة أي مفضلات
bored = الانتظار بالملل؟
############# #############
# HOME-PAGE # # HOME-PAGE #

View file

@ -17,7 +17,9 @@ false=Fals
unknown=Desconegut unknown=Desconegut
save=Desa save=Desa
close=Tanca close=Tanca
filesSelected=fitxers seleccionats
noFavourites=No s'ha afegit cap favorit
bored=Avorrit esperant?
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -17,7 +17,9 @@ false=Falsch
unknown=Unbekannt unknown=Unbekannt
save=Speichern save=Speichern
close=Schließen close=Schließen
filesSelected=Dateien ausgewählt
noFavourites=Keine Favoriten hinzugefügt
bored=Gelangweiltes Warten?
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -17,7 +17,9 @@ false=False
unknown=Unknown unknown=Unknown
save=Save save=Save
close=Close close=Close
filesSelected=files selected
noFavourites=No favourites added
bored=Bored Waiting?
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -17,7 +17,9 @@ false=Falso
unknown=Desconocido unknown=Desconocido
save=Guardar save=Guardar
close=Cerrar close=Cerrar
filesSelected=archivos seleccionados
noFavourites=No se agregaron favoritos
bored=¿Aburrido de esperar?
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -21,7 +21,9 @@ false=Faux
unknown=Inconnu unknown=Inconnu
save=Enregistrer save=Enregistrer
close=Fermer close=Fermer
filesSelected=fichiers sélectionnés
noFavourites=Aucun favori ajouté
bored=Ennuyé d'attendre ?
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -17,7 +17,9 @@ false=False
unknown=未知 unknown=未知
save=保存 save=保存
close=关闭 close=关闭
filesSelected=\u9009\u62E9\u7684\u6587\u4EF6
noFavourites=\u6CA1\u6709\u6DFB\u52A0\u6536\u85CF\u5939
bored=\u65E0\u804A\u7B49\u5F85\uFF1F
############# #############
# HOME-PAGE # # HOME-PAGE #
############# #############

View file

@ -543,7 +543,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (fileNames.length === 1) { if (fileNames.length === 1) {
$(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames[0]); $(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames[0]);
} else if (fileNames.length > 1) { } else if (fileNames.length > 1) {
$(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames.length + " files selected"); $(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames.length + " " + [[#{filesSelected}]]);
} else { } else {
$(inputElement).siblings(".custom-file-label").addClass("selected").html([[#{pdfPrompt}]]); $(inputElement).siblings(".custom-file-label").addClass("selected").html([[#{pdfPrompt}]]);
} }

View file

@ -364,7 +364,7 @@ function compareVersions(version1, version2) {
</div> </div>
</div> </div>
<script> <script th:inline="javascript">
function updateFavoritesDropdown() { function updateFavoritesDropdown() {
@ -396,7 +396,7 @@ function compareVersions(version1, version2) {
if(!hasFavorites){ if(!hasFavorites){
var defaultItem = document.createElement('a'); var defaultItem = document.createElement('a');
defaultItem.className = 'dropdown-item'; defaultItem.className = 'dropdown-item';
defaultItem.textContent = 'No favourites added'; defaultItem.textContent = [[#{noFavourites}]]
dropdown.appendChild(defaultItem); dropdown.appendChild(defaultItem);
} }
} }
@ -442,7 +442,7 @@ function compareVersions(version1, version2) {
<div class="form-group"> <div class="form-group">
<div class="custom-control custom-checkbox"> <div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="boredWaiting"> <input type="checkbox" class="custom-control-input" id="boredWaiting">
<label class="custom-control-label" for="boredWaiting">Bored Waiting? :)</label> <label class="custom-control-label" for="boredWaiting" th:text="#{bored}"></label>
</div> </div>
</div> </div>
</div> </div>

View file

@ -58,10 +58,15 @@ filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg);
} }
.favorite-icon { .favorite-icon {
display: none;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 10px; right: 10px;
cursor: pointer; }
/* Only show the favorite icons when the parent card is being hovered over */
.feature-card:hover .favorite-icon {
display: block;
} }
.favorite-icon img { .favorite-icon img {
filter: brightness(0); filter: brightness(0);