From 604851fc9c42b44b667597fc883c326530caa4a8 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Wed, 20 Dec 2023 15:13:29 +0800 Subject: [PATCH] Fix custom filament tab missing bug Fixed #3135 --- resources/web/guide/22/22.css | 5 +- resources/web/guide/22/index.html | 27 ++++- resources/web/guide/23/23.css | 99 ++++++++++++++++++- resources/web/guide/23/index.html | 159 ++++++++++++++++++++++++++++-- 4 files changed, 274 insertions(+), 16 deletions(-) diff --git a/resources/web/guide/22/22.css b/resources/web/guide/22/22.css index 51b3ec6e52..0a542a4645 100644 --- a/resources/web/guide/22/22.css +++ b/resources/web/guide/22/22.css @@ -32,6 +32,7 @@ input #ItemSelectArea { + flex: 0 0 40px; height:40px; border-top: 1px solid #009688; display: flex; @@ -46,7 +47,7 @@ input #ItemBlockArea { - flex: 1; + flex: 1 0 236px; display:flex; overflow-x:auto; flex-wrap:wrap; @@ -59,7 +60,7 @@ input .MItem { - width: 220px; + min-width: 220px; height: 32px; } diff --git a/resources/web/guide/22/index.html b/resources/web/guide/22/index.html index 0b0bd54739..6e379d2a0b 100644 --- a/resources/web/guide/22/index.html +++ b/resources/web/guide/22/index.html @@ -19,7 +19,7 @@
Filament Selection
-
+
printer
@@ -33,7 +33,15 @@
Bambulab BBL-3DP-001-V4-normal
Bambulab BBL-3DP-001-V4-normal
Bambulab BBL-3DP-001-V5-normal
-
Bambulab BBL-3DP-001-V4-normal
--> +
Bambulab BBL-3DP-001-V4-normal
+
Bambulab BBL-3DP-001-V5-normal
+
Bambulab BBL-3DP-001-V4-normal
+
Bambulab BBL-3DP-001-V4-normal
+
Bambulab BBL-3DP-001-V5-normal
+
Bambulab BBL-3DP-001-V4-normal
+
Bambulab BBL-3DP-001-V4-normal
+
Bambulab BBL-3DP-001-V5-normal
+
Bambulab BBL-3DP-001-V4-normal
-->
@@ -46,7 +54,13 @@
ABS
TPU
PA6+CF
-
N/A
--> +
N/A
+
PLA
+
PET
+
ABS
+
TPU
+
PA6+CF
+
N/A
-->
@@ -58,7 +72,12 @@
BBL
eSUN
Kexcelled
-
Polymaker
--> +
Polymaker
+
Unknown
+
BBL
+
eSUN
+
Kexcelled
+
Polymaker
--> diff --git a/resources/web/guide/23/23.css b/resources/web/guide/23/23.css index 368b61e55e..de2ca9f3e8 100644 --- a/resources/web/guide/23/23.css +++ b/resources/web/guide/23/23.css @@ -32,6 +32,7 @@ input #ItemSelectArea { + flex: 0 0 40px; height:40px; border-top: 1px solid #009688; display: flex; @@ -46,7 +47,6 @@ input #ItemBlockArea { - flex: 1; display:flex; overflow-x:auto; flex-wrap:wrap; @@ -55,11 +55,13 @@ input align-items: flex-start; align-content:flex-start; line-height: 32px; + height: 100%; + flex:1 0 236px; } .MItem { - width: 220px; + min-width: 220px; height: 32px; } @@ -111,3 +113,96 @@ input display: flex; justify-content:space-around; } + +#SystemFilamentsArea +{ + display: none; + flex-direction: column; +} + +#CFilament_Btn_Area +{ + display: flex; + align-items: center; + height: 30px; +} + +#Title +{ + margin: 0px 40px; + border-bottom: 1px solid #000; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} + +#Title div +{ + cursor: pointer; + font-size: 24px; +} + +#Title div.TitleSelected +{ + height: calc(100% - 6px); + display: flex; + align-items: center; + border-bottom: 6px solid #00AE42; +} + +#Title div.TitleUnselected +{ + height: 100%; + display: flex; + align-items: center; + color: #000; +} + +#CustomFilamentsArea +{ + display: flex; + flex-direction: column; + height: 100%; +} + +#CFilament_List +{ + display:flex; + overflow-x:auto; + flex-wrap:wrap; + flex-direction: column; + justify-content:flex-start; + align-items: flex-start; + align-content:flex-start; + line-height: 32px; + + height: 100%; +} + +.CFilament_Item +{ + display: flex; + align-items: center; + margin-right: 30px; +} + +.CFilament_Name +{ + width: 220px; + overflow: hidden; + white-space: nowrap; /* ?????? */ + text-overflow: ellipsis; /* ????????? */ +} + +.CFilament_EditBtn +{ + cursor: pointer; + width: 20px; + height: 20px; +} + +.CFilament_EditBtn:hover +{ + +} \ No newline at end of file diff --git a/resources/web/guide/23/index.html b/resources/web/guide/23/index.html index 84d6206481..30a6ef989d 100644 --- a/resources/web/guide/23/index.html +++ b/resources/web/guide/23/index.html @@ -7,7 +7,6 @@ - @@ -17,10 +16,12 @@
-
Filament Selection
+
System Filaments
+
Custom Filaments
-
- +
+ +
printer
@@ -32,8 +33,7 @@
Bambulab BBL-3DP-001-V5-normal
Bambulab BBL-3DP-001-V4-normal
Bambulab BBL-3DP-001-V4-normal
-
Bambulab BBL-3DP-001-V5-normal
-
Bambulab BBL-3DP-001-V4-normal
--> +
Bambulab BBL-3DP-001-V5-normal
-->
@@ -46,7 +46,7 @@
ABS
TPU
PA6+CF
-
N/A
--> +
N/A
-->
@@ -58,7 +58,8 @@
BBL
eSUN
Kexcelled
-
Polymaker
--> +
Polymaker
+
Unknown
-->
@@ -126,6 +127,148 @@
Geneic TPU83
Geneic TPU87
--> + + + +
+
+
Create New
+
+
+ +
+