@jx3box/jx3box-ui 2.4.17 → 2.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/header/box.less +40 -25
- package/package.json +1 -1
- package/src/header/box.vue +9 -6
|
@@ -77,6 +77,8 @@
|
|
|
77
77
|
color: #666;
|
|
78
78
|
.db;
|
|
79
79
|
white-space: nowrap;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
80
82
|
}
|
|
81
83
|
.u-mark {
|
|
82
84
|
color: #fff;
|
|
@@ -132,7 +134,8 @@
|
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
|
|
135
|
-
|
|
137
|
+
// The mobile box is selected at 768px in CommonHeader.vue.
|
|
138
|
+
@media screen and (max-width: 768px) {
|
|
136
139
|
.c-header-jx3box {
|
|
137
140
|
padding-top: 16px;
|
|
138
141
|
background: #1d2128;
|
|
@@ -140,40 +143,16 @@
|
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
.c-jx3box {
|
|
143
|
-
height: calc(100vh - @header-height);
|
|
144
146
|
.u-list {
|
|
145
147
|
border-top: none;
|
|
146
|
-
padding: 0 16px 18px;
|
|
147
|
-
display: grid;
|
|
148
|
-
grid-template-columns: repeat(4, 1fr);
|
|
149
|
-
justify-content: center;
|
|
150
|
-
.w(100%);
|
|
151
|
-
box-sizing: border-box;
|
|
152
|
-
gap: 10px;
|
|
153
|
-
margin: 0 !important;
|
|
154
|
-
&::after {
|
|
155
|
-
flex: 1;
|
|
156
|
-
}
|
|
157
|
-
li {
|
|
158
|
-
padding: 4px;
|
|
159
|
-
.mr(0);
|
|
160
|
-
.mb(0);
|
|
161
|
-
}
|
|
162
148
|
}
|
|
163
149
|
.u-item {
|
|
164
|
-
.size(68px);
|
|
165
|
-
.auto(x);
|
|
166
|
-
padding: 7px;
|
|
167
150
|
border-radius: 10px;
|
|
168
151
|
border-color: rgba(255, 255, 255, 0.08);
|
|
169
152
|
background: #292e37;
|
|
170
153
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
|
|
171
154
|
transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
|
|
172
155
|
|
|
173
|
-
.u-pic {
|
|
174
|
-
.size(28px);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
156
|
.u-txt {
|
|
178
157
|
color: #d4d7de;
|
|
179
158
|
}
|
|
@@ -192,6 +171,39 @@
|
|
|
192
171
|
background: rgba(255, 255, 255, 0.06);
|
|
193
172
|
color: #d4d7de;
|
|
194
173
|
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media screen and (max-width: @phone) {
|
|
178
|
+
.c-jx3box {
|
|
179
|
+
height: calc(100vh - @header-height);
|
|
180
|
+
.u-list {
|
|
181
|
+
padding: 0 16px 18px;
|
|
182
|
+
display: grid;
|
|
183
|
+
grid-template-columns: repeat(4, 1fr);
|
|
184
|
+
justify-content: center;
|
|
185
|
+
.w(100%);
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
gap: 10px;
|
|
188
|
+
margin: 0 !important;
|
|
189
|
+
&::after {
|
|
190
|
+
flex: 1;
|
|
191
|
+
}
|
|
192
|
+
li {
|
|
193
|
+
padding: 4px;
|
|
194
|
+
.mr(0);
|
|
195
|
+
.mb(0);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
.u-item {
|
|
199
|
+
.size(68px);
|
|
200
|
+
.auto(x);
|
|
201
|
+
padding: 7px;
|
|
202
|
+
|
|
203
|
+
.u-pic {
|
|
204
|
+
.size(28px);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
195
207
|
.u-app-start {
|
|
196
208
|
clear: none;
|
|
197
209
|
}
|
|
@@ -207,6 +219,9 @@
|
|
|
207
219
|
.u-pic {
|
|
208
220
|
.size(22px);
|
|
209
221
|
}
|
|
222
|
+
.u-txt {
|
|
223
|
+
font-size: 11px;
|
|
224
|
+
}
|
|
210
225
|
}
|
|
211
226
|
}
|
|
212
227
|
}
|
package/package.json
CHANGED
package/src/header/box.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<li v-for="(item, i) in list" :key="i" :class="{ 'u-app-start': item.lf }">
|
|
16
16
|
<a class="u-item" :href="item.href" :target="getTarget(item.href)">
|
|
17
17
|
<img class="u-pic" :src="getBoxIcon(item.img)" />
|
|
18
|
-
<span class="u-txt" :title="item.abbr">{{ getDisplayName(item
|
|
18
|
+
<span class="u-txt" :title="item.abbr">{{ getDisplayName(item) }}</span>
|
|
19
19
|
</a>
|
|
20
20
|
</li>
|
|
21
21
|
</ul>
|
|
@@ -37,6 +37,12 @@ import { trimSlash } from "./utils";
|
|
|
37
37
|
import { loadBoxMenu } from "./box-menu";
|
|
38
38
|
|
|
39
39
|
const { __imgPath, __cdn } = JX3BOX;
|
|
40
|
+
const shortNames = {
|
|
41
|
+
talent: "奇穴模拟",
|
|
42
|
+
talent2: "镇派模拟",
|
|
43
|
+
meridians: "经脉模拟",
|
|
44
|
+
topic: "资料片",
|
|
45
|
+
};
|
|
40
46
|
export default {
|
|
41
47
|
name: "Box",
|
|
42
48
|
mixins: [i18nMixin],
|
|
@@ -92,11 +98,8 @@ export default {
|
|
|
92
98
|
let web_url = __cdn + "logo/logo-dark/" + val;
|
|
93
99
|
return web_url;
|
|
94
100
|
},
|
|
95
|
-
getDisplayName: function (
|
|
96
|
-
|
|
97
|
-
if (chars.length === 5) return chars.slice(0, 3).join("");
|
|
98
|
-
if (chars.length === 4) return chars.slice(0, 2).join("");
|
|
99
|
-
return chars.join("");
|
|
101
|
+
getDisplayName: function (item) {
|
|
102
|
+
return shortNames[item.uuid] || item.abbr;
|
|
100
103
|
},
|
|
101
104
|
getTarget: function (val) {
|
|
102
105
|
if (window.innerWidth < 768 || val?.startsWith("/")) {
|