fix: optimize firmware notification action UI
This commit is contained in:
@@ -58,7 +58,7 @@ def test_workbench_exposes_artifact_actions_and_always_starts_a_new_task() -> No
|
||||
"/firmware-workbench-entry.js?v=3",
|
||||
"/firmware-workbench.html",
|
||||
"/firmware-workbench-theme.js?v=1",
|
||||
"/firmware-workbench.css?v=6",
|
||||
"/firmware-workbench.css?v=7",
|
||||
"/firmware-workbench.js?v=4",
|
||||
):
|
||||
assert f'"{asset}"' in worker
|
||||
@@ -107,3 +107,16 @@ def test_peer_dialogs_share_the_expanded_desktop_size_contract() -> None:
|
||||
assert 'width: min(960px, calc(100vw - 30px));' in extension
|
||||
assert 'width: min(1180px, calc(100vw - 28px));' in extension
|
||||
assert 'width: min(980px, calc(100vw - 32px));' in extension
|
||||
|
||||
|
||||
def test_published_artifacts_expose_the_expanded_right_aligned_notify_action() -> None:
|
||||
script = source("firmware-workbench.js")
|
||||
styles = source("firmware-workbench.css")
|
||||
|
||||
assert 'artifact.status === "published"' in script
|
||||
assert 'class="notify-action"' in script
|
||||
assert 'data-artifact-action="notify"' in script
|
||||
assert 'margin-left: auto' in styles
|
||||
assert 'flex: 0 0 42px' in styles
|
||||
assert 'height: 34px' in styles
|
||||
assert '.table-actions .notify-action svg { width: 20px; height: 20px;' in styles
|
||||
|
||||
Reference in New Issue
Block a user