@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.
package/assets/less/message.less
CHANGED
|
@@ -426,7 +426,7 @@ a.message_error {
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.generic-attachment {
|
|
429
|
-
display:
|
|
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
|
-
})),
|
|
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
|
@@ -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
|
-
|
|
55
|
-
|
|
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
|
)
|