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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-desktop",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Goblin Desktop",
5
5
  "main": "./builders/builders.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@ class DefaultView extends View {
32
32
  return (
33
33
  <Detail
34
34
  id={this.props.detail}
35
- width="100%"
35
+ customWidth="100%"
36
36
  leftPanelWorkitemId={this.props.leftPanelWorkitemId}
37
37
  />
38
38
  );
@@ -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
- width,
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"