@taole/newgiftbar 0.0.8 → 0.1.0

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/README.md CHANGED
@@ -27,7 +27,7 @@ npm run build:npm
27
27
 
28
28
  ```bash
29
29
  npm run build:npm
30
- npm publish . --access=public --registry=https://registry.npmjs.org/ --tag rc
30
+ npm publish
31
31
  ```
32
32
 
33
33
  发布认证、token 配置、常见报错排查见:[docs/npm-publish.md](./docs/npm-publish.md)
@@ -148,6 +148,11 @@
148
148
  display: flex;
149
149
  -ms-flex-wrap: wrap;
150
150
  flex-wrap: wrap;
151
+ -webkit-box-align: start;
152
+ -ms-flex-align: start;
153
+ align-items: flex-start;
154
+ -ms-flex-line-pack: start;
155
+ align-content: flex-start;
151
156
  padding: 10px;
152
157
  height: 234px;
153
158
  width: 646px;
@@ -172,7 +177,10 @@
172
177
  color: #333;
173
178
  font-size: 14px;
174
179
  width: 72px;
175
- height: 96px;
180
+ min-height: 96px;
181
+ height: auto;
182
+ -ms-flex-item-align: start;
183
+ align-self: flex-start;
176
184
  margin-right: 12px;
177
185
  border: solid 1px #fff;
178
186
  cursor: pointer;
@@ -279,9 +287,10 @@
279
287
  .giftbar-item-title {
280
288
  width: 80px;
281
289
  margin-left: -4px;
282
- overflow: hidden;
283
- text-overflow: ellipsis;
284
- white-space: nowrap;
290
+ line-height: 18px;
291
+ word-break: break-word;
292
+ overflow-wrap: break-word;
293
+ white-space: normal;
285
294
  }
286
295
 
287
296
  .giftbar-item-unit {
@@ -348,7 +357,8 @@
348
357
  }
349
358
 
350
359
  .giftbar-footer {
351
- height: 40px;
360
+ min-height: 40px;
361
+ height: auto;
352
362
  background: #efefef;
353
363
  display: -webkit-box;
354
364
  display: -ms-flexbox;
@@ -382,10 +392,6 @@
382
392
  align-items: center;
383
393
  }
384
394
 
385
- .giftbar-user-static {
386
- cursor: default;
387
- }
388
-
389
395
  .giftbar-count,
390
396
  .giftbar-user {
391
397
  height: 30px;
@@ -403,6 +409,14 @@
403
409
  cursor: pointer;
404
410
  }
405
411
 
412
+ .giftbar-user.giftbar-user-static {
413
+ cursor: default;
414
+ height: auto;
415
+ min-height: 30px;
416
+ padding-right: 10px;
417
+ line-height: 18px;
418
+ }
419
+
406
420
  .giftbar-count span,
407
421
  .giftbar-user span {
408
422
  font-size: 14px;
@@ -462,6 +476,17 @@
462
476
  white-space: nowrap;
463
477
  }
464
478
 
479
+ /* 房间名 / type37 礼物名:对标旧栏 #sendGiftToCurrentRoomName,不截断 */
480
+ .giftbar-user-name-wrap {
481
+ max-width: 220px;
482
+ overflow: visible;
483
+ text-overflow: unset;
484
+ white-space: normal;
485
+ word-break: break-word;
486
+ overflow-wrap: break-word;
487
+ line-height: 18px;
488
+ }
489
+
465
490
  .giftbar-user-list {
466
491
  right: 0;
467
492
  left: auto;
@@ -3248,7 +3248,7 @@ function create_if_block_8(ctx) {
3248
3248
  div0 = element("div");
3249
3249
  span = element("span");
3250
3250
  t = text(t_value);
3251
- attr(span, "class", "giftbar-user-name");
3251
+ attr(span, "class", "giftbar-user-name giftbar-user-name-wrap");
3252
3252
  attr(div0, "class", "giftbar-user giftbar-user-static");
3253
3253
  attr(div1, "class", "giftbar-sendgift-user");
3254
3254
  },
@@ -3293,7 +3293,7 @@ function create_if_block_6$3(ctx) {
3293
3293
  div0 = element("div");
3294
3294
  span = element("span");
3295
3295
  t1 = text(t1_value);
3296
- attr(span, "class", "giftbar-user-name");
3296
+ attr(span, "class", "giftbar-user-name giftbar-user-name-wrap");
3297
3297
  attr(div0, "class", "giftbar-user giftbar-user-static");
3298
3298
  attr(div1, "class", "giftbar-sendgift-user");
3299
3299
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/newgiftbar",
3
- "version": "0.0.8",
3
+ "version": "0.1.0",
4
4
  "description": "聊天室 / IM 礼物栏业务组件",
5
5
  "author": "",
6
6
  "module": "./npm/newgiftbar.es.js",