mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Improves readability of resolution display
Updates the format of resolution items displayed in the publisher's attribute for better readability. Removes an unused import from server settings.
This commit is contained in:
parent
4c5cc4923c
commit
824dc0cc81
2 changed files with 5 additions and 3 deletions
|
|
@ -72,7 +72,9 @@ class CollectExplicitResolution(
|
|||
resolution_items = {}
|
||||
for item in cls.options:
|
||||
item_text = (
|
||||
f"{item['width']}x{item['height']} ({item['pixel_aspect']})")
|
||||
f"{item['width']}x{item['height']} "
|
||||
f"({item['pixel_aspect']})"
|
||||
)
|
||||
resolution_items[item_text] = item
|
||||
|
||||
cls.resolution_items = resolution_items
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
from collections.abc import Iterable
|
||||
from pydantic import validator
|
||||
from typing import Any
|
||||
|
||||
|
|
@ -221,7 +220,8 @@ class CollectExplicitResolutionModel(BaseSettingsModel):
|
|||
default_factory=list,
|
||||
title="Resolution choices",
|
||||
description=(
|
||||
"Available resolution choices to be displayed in the publishers attribute."
|
||||
"Available resolution choices to be displayed in "
|
||||
"the publishers attribute."
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue