@subiz/widget-v4 4.0.79 → 4.0.80

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.
@@ -426,7 +426,7 @@ a.message_error {
426
426
  }
427
427
 
428
428
  .generic-attachment {
429
- display: inline-block;
429
+ display: flex;
430
430
  width: 100%;
431
431
  overflow: hidden;
432
432
  width: 100%;
@@ -436,6 +436,10 @@ a.message_error {
436
436
  cursor: grab;
437
437
  }
438
438
 
439
+ .generic-attachment--element-content {
440
+ flex: 1;
441
+ }
442
+
439
443
  .generic-attachment--element {
440
444
  border: 1px solid #d8d8d8;
441
445
  background: white;
@@ -443,8 +447,10 @@ a.message_error {
443
447
  overflow: hidden;
444
448
  width: 220px;
445
449
  margin-right: 10px;
446
- display: inline-block;
447
450
  vertical-align: top;
451
+ display: flex;
452
+ flex-direction: column;
453
+ flex-shrink: 0;
448
454
 
449
455
  &:last-child {
450
456
  margin-right: 0;
@@ -67,7 +67,9 @@ class GenericTemplateAttachments extends _common.Com {
67
67
  alt: "generic attachment element",
68
68
  class: "generic-attachment--element-img",
69
69
  src: this.props.store.replaceFileUrl(ele.image_url)
70
- })), $title, $subtitle, (0, _preact.h)(_Buttons.default, {
70
+ })), (0, _preact.h)("div", {
71
+ class: "generic-attachment--element-content"
72
+ }, $title, $subtitle), (0, _preact.h)(_Buttons.default, {
71
73
  buttons: ele.buttons,
72
74
  onSelect: button => this.props.onSelect(button),
73
75
  t: this.props.t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.0.79",
3
+ "version": "4.0.80",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
@@ -51,8 +51,10 @@ export default class GenericTemplateAttachments extends Com {
51
51
  src={this.props.store.replaceFileUrl(ele.image_url)}
52
52
  />
53
53
  </div>
54
- {$title}
55
- {$subtitle}
54
+ <div class='generic-attachment--element-content'>
55
+ {$title}
56
+ {$subtitle}
57
+ </div>
56
58
  <Buttons buttons={ele.buttons} onSelect={(button) => this.props.onSelect(button)} t={this.props.t} />
57
59
  </div>
58
60
  )