@taole/newgiftbar 0.0.8 → 0.0.9

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)
@@ -172,7 +172,8 @@
172
172
  color: #333;
173
173
  font-size: 14px;
174
174
  width: 72px;
175
- height: 96px;
175
+ min-height: 96px;
176
+ height: auto;
176
177
  margin-right: 12px;
177
178
  border: solid 1px #fff;
178
179
  cursor: pointer;
@@ -279,9 +280,10 @@
279
280
  .giftbar-item-title {
280
281
  width: 80px;
281
282
  margin-left: -4px;
282
- overflow: hidden;
283
- text-overflow: ellipsis;
284
- white-space: nowrap;
283
+ line-height: 18px;
284
+ word-break: break-word;
285
+ overflow-wrap: break-word;
286
+ white-space: normal;
285
287
  }
286
288
 
287
289
  .giftbar-item-unit {
@@ -348,7 +350,8 @@
348
350
  }
349
351
 
350
352
  .giftbar-footer {
351
- height: 40px;
353
+ min-height: 40px;
354
+ height: auto;
352
355
  background: #efefef;
353
356
  display: -webkit-box;
354
357
  display: -ms-flexbox;
@@ -382,10 +385,6 @@
382
385
  align-items: center;
383
386
  }
384
387
 
385
- .giftbar-user-static {
386
- cursor: default;
387
- }
388
-
389
388
  .giftbar-count,
390
389
  .giftbar-user {
391
390
  height: 30px;
@@ -403,6 +402,14 @@
403
402
  cursor: pointer;
404
403
  }
405
404
 
405
+ .giftbar-user.giftbar-user-static {
406
+ cursor: default;
407
+ height: auto;
408
+ min-height: 30px;
409
+ padding-right: 10px;
410
+ line-height: 18px;
411
+ }
412
+
406
413
  .giftbar-count span,
407
414
  .giftbar-user span {
408
415
  font-size: 14px;
@@ -462,6 +469,17 @@
462
469
  white-space: nowrap;
463
470
  }
464
471
 
472
+ /* 房间名 / type37 礼物名:对标旧栏 #sendGiftToCurrentRoomName,不截断 */
473
+ .giftbar-user-name-wrap {
474
+ max-width: 220px;
475
+ overflow: visible;
476
+ text-overflow: unset;
477
+ white-space: normal;
478
+ word-break: break-word;
479
+ overflow-wrap: break-word;
480
+ line-height: 18px;
481
+ }
482
+
465
483
  .giftbar-user-list {
466
484
  right: 0;
467
485
  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.0.9",
4
4
  "description": "聊天室 / IM 礼物栏业务组件",
5
5
  "author": "",
6
6
  "module": "./npm/newgiftbar.es.js",