goblin-desktop 4.0.4 → 4.0.5
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/package.json
CHANGED
package/widgets/default/view.js
CHANGED
package/widgets/detail/widget.js
CHANGED
|
@@ -30,6 +30,7 @@ class Detail extends Widget {
|
|
|
30
30
|
type: 'type',
|
|
31
31
|
title: 'title',
|
|
32
32
|
kind: 'kind',
|
|
33
|
+
width: 'width',
|
|
33
34
|
detailWidget: 'detailWidget',
|
|
34
35
|
detailWidgetId: 'detailWidgetId',
|
|
35
36
|
entityId: 'entityId',
|
|
@@ -46,11 +47,12 @@ class Detail extends Widget {
|
|
|
46
47
|
const {
|
|
47
48
|
id,
|
|
48
49
|
kind,
|
|
49
|
-
|
|
50
|
+
customWidth,
|
|
50
51
|
entityId,
|
|
51
52
|
detailWidget,
|
|
52
53
|
detailWidgetId,
|
|
53
54
|
} = this.props;
|
|
55
|
+
let {width} = this.props;
|
|
54
56
|
|
|
55
57
|
if (!id) {
|
|
56
58
|
return null;
|
|
@@ -79,6 +81,10 @@ class Detail extends Widget {
|
|
|
79
81
|
`backend.${entityId}`
|
|
80
82
|
);
|
|
81
83
|
|
|
84
|
+
if (customWidth) {
|
|
85
|
+
width = customWidth;
|
|
86
|
+
}
|
|
87
|
+
|
|
82
88
|
return (
|
|
83
89
|
<Container
|
|
84
90
|
kind="view-right"
|