From f33097f9f1f4f09d2a948da3bf04c1c385a11258 Mon Sep 17 00:00:00 2001 From: xuchenghua09 Date: Wed, 6 Jul 2022 11:58:14 +0800 Subject: [PATCH 1/3] PC selector change Signed-off-by: xuchenghua09 --- .../dialog_selector/js/pages/index/index.css | 39 +++++++++---------- .../dialog_selector/js/pages/index/index.hml | 16 ++++---- .../dialog_selector/js/pages/index/index.js | 7 +--- 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/services/dialog_ui/dialog_selector/js/pages/index/index.css b/services/dialog_ui/dialog_selector/js/pages/index/index.css index abc01732d32..6682d73ff4e 100644 --- a/services/dialog_ui/dialog_selector/js/pages/index/index.css +++ b/services/dialog_ui/dialog_selector/js/pages/index/index.css @@ -62,6 +62,7 @@ border-radius: 8vp; align-self: center; } + .AppName { width: 58vp; font-size: 12vp; @@ -70,6 +71,7 @@ align-self: center; text-overflow: ellipsis; } + .but { text-align: center; justify-content: center; @@ -89,40 +91,35 @@ font-weight: regular; } -.selector-listback { +.selector-list { + margin-left: 10vp; + margin-right: 10vp; + background-color: white; + overflow: auto; + display: flex; flex-direction: column; - justify-content: flex-start; align-items: center; - background-color: #ffffff; } -.selector-list { - scrollbar-width: 2vp; - margin-left: 10vp; - margin-right: 10vp; - background-color: #ffffff; +.selector-listback { + flex-direction: column; + justify-content: flex-start; + align-items: center; + background-color: #00000000; } .selector-listItem { width: 90%; height: 68vp; - margin-top: 1vp; - margin-bottom: 1vp; - background-color: #ffffff; -} - -.selector-listItemNode { - width: 100%; - height: 100%; - align-items: center; - border-bottom: 1vp; + background-color: white; + border-bottom: 2vp; border-bottom-color: #fafafa; } .selector-listItemAppIcon { height: 48vp; width: 48vp; - margin: 8vp; + margin: 4vp; border-radius: 8vp; align-self: center; } @@ -141,11 +138,11 @@ width: 100%; height: 50vp; justify-content: center; - background-color: #ffffff; + background-color: white; } .selector-btnCancel { - width: 80%; + width: 75%; height: 40vp; font-size: 16fp; margin-bottom: 10vp; diff --git a/services/dialog_ui/dialog_selector/js/pages/index/index.hml b/services/dialog_ui/dialog_selector/js/pages/index/index.hml index 57e4d0c30e2..0c8feb277c4 100644 --- a/services/dialog_ui/dialog_selector/js/pages/index/index.hml +++ b/services/dialog_ui/dialog_selector/js/pages/index/index.hml @@ -35,15 +35,13 @@ {{$t('message.cancel')}} -
- - -
- - {{$item.name}} -
-
-
+
+
+
+ + {{$item.name}} +
+
diff --git a/services/dialog_ui/dialog_selector/js/pages/index/index.js b/services/dialog_ui/dialog_selector/js/pages/index/index.js index 896526bc5ca..a73583cca44 100644 --- a/services/dialog_ui/dialog_selector/js/pages/index/index.js +++ b/services/dialog_ui/dialog_selector/js/pages/index/index.js @@ -98,8 +98,7 @@ export default { } } else if (this.deviceType == "pc") { let heightTotalVp = 1; - let heightVal = 70; - let scrollbar = "off" + let heightVal = 68; if (this.selectorHapList.length == 2) { heightTotalVp = this.selectorHapList.length * heightVal; } else if (this.selectorHapList.length == 3) { @@ -107,8 +106,7 @@ export default { } else if (this.selectorHapList.length == 4) { heightTotalVp = this.selectorHapList.length * heightVal; } else if (this.selectorHapList.length > 4) { - heightTotalVp = 4 * heightVal + 36; - scrollbar = "auto"; + heightTotalVp = 4 * heightVal + 34; } else { ; } @@ -116,7 +114,6 @@ export default { this.pcSelectorlist = { width: "100%", height: heightTotalVp + "vp", - scrollbar:scrollbar }; } }, -- Gitee From eacfa48b1f83b865528928d25add784ebe835ece Mon Sep 17 00:00:00 2001 From: xuchenghua09 Date: Wed, 6 Jul 2022 13:48:32 +0800 Subject: [PATCH 2/3] commit html fix --- services/dialog_ui/dialog_selector/js/pages/index/index.hml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/dialog_ui/dialog_selector/js/pages/index/index.hml b/services/dialog_ui/dialog_selector/js/pages/index/index.hml index 0c8feb277c4..8457951d2af 100644 --- a/services/dialog_ui/dialog_selector/js/pages/index/index.hml +++ b/services/dialog_ui/dialog_selector/js/pages/index/index.hml @@ -35,7 +35,7 @@ {{$t('message.cancel')}}
-
+
@@ -46,4 +46,4 @@
-
\ No newline at end of file +
-- Gitee From 783df0982cda7ad11d45878521ccb6eeb26326ae Mon Sep 17 00:00:00 2001 From: xuchenghua09 Date: Wed, 6 Jul 2022 15:50:20 +0800 Subject: [PATCH 3/3] dialog rounded corner modification Signed-off-by: xuchenghua09 --- services/dialog_ui/dialog_selector/js/pages/index/index.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/dialog_ui/dialog_selector/js/pages/index/index.css b/services/dialog_ui/dialog_selector/js/pages/index/index.css index 6682d73ff4e..a0865796cad 100644 --- a/services/dialog_ui/dialog_selector/js/pages/index/index.css +++ b/services/dialog_ui/dialog_selector/js/pages/index/index.css @@ -139,6 +139,7 @@ height: 50vp; justify-content: center; background-color: white; + border-radius: 24vp; } .selector-btnCancel { @@ -149,4 +150,4 @@ margin-top: 10vp; background-color: #f2f2f2; color: #2168f7; -} \ No newline at end of file +} -- Gitee