From c1b9d37e6f69b66a268063e04893ec13926957cf Mon Sep 17 00:00:00 2001 From: Sophia Lin Date: Tue, 28 Jun 2022 10:42:15 +0000 Subject: [PATCH] crostini: Update UI for port forwarding page for multi-containers Modify multi-container UI for port forwarding so it is more consistent with other parts of Settings UI. Changes include: * replaced cards with indented table * replaced triple dot menu for each port with single X icon button * aligned labels with table column * removed redundant table title * added label for container selector Details and screenshots here: https://docs.google.com/drawings/d/1LWtQ9jeNncbCp-qa6Bpnl8F6jTkKQnscdIwBBvM-Wk0/edit?usp=sharing containers on DUT Bug: 1261319, b:228140711 Test: unit and browser tests, manually tested with multi + single Change-Id: I70c264169c1b626565a669a93b7dfd10fa689306 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3723239 Reviewed-by: Nicholas Verne Commit-Queue: Sophia Lin Cr-Commit-Position: refs/heads/main@{#1018610} --- .../crostini_container_select.html | 1 + .../crostini_port_forwarding.html | 106 ++++++++---------- .../crostini_page/crostini_port_forwarding.js | 32 +----- .../settings/chromeos/crostini_page_test.js | 5 +- 4 files changed, 52 insertions(+), 92 deletions(-) diff --git a/chrome/browser/resources/settings/chromeos/crostini_page/crostini_container_select.html b/chrome/browser/resources/settings/chromeos/crostini_page/crostini_container_select.html index dda4253ace34c4..83ff9d9c84f338 100644 --- a/chrome/browser/resources/settings/chromeos/crostini_page/crostini_container_select.html +++ b/chrome/browser/resources/settings/chromeos/crostini_page/crostini_container_select.html @@ -1,4 +1,5 @@ +