Tweaks fixes (#10311)

* Save numbers as int instead of string

* Fix hover logic

* Fix delay for new alerts

* Fixup dialog and marking item as uploaded

* Make preview progress larger and easier to grab

* Allow hovering to control preview on desktop
This commit is contained in:
Nicolas Mowen
2024-03-07 07:34:11 -07:00
committed by GitHub
parent b2931bcaa9
commit 8776cdfd5b
5 changed files with 139 additions and 70 deletions

View File

@@ -208,7 +208,12 @@ def update_yaml_from_url(file_path, url):
if len(new_value_list) > 1:
update_yaml_file(file_path, key_path, new_value_list)
else:
update_yaml_file(file_path, key_path, new_value_list[0])
value = str(new_value_list[0])
if value.isnumeric():
value = int(value)
update_yaml_file(file_path, key_path, value)
def update_yaml_file(file_path, key_path, new_value):