goblin-desktop 3.1.2 → 3.1.3

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": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Goblin Desktop",
5
5
  "main": "./builders/builders.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@ class DefaultView extends View {
19
19
  return null;
20
20
  }
21
21
  return (
22
- <Container kind="row" grow="1">
22
+ <Container kind="row" grow="1" minWidth="300px">
23
23
  <Hinter id={this.props.hinter} />
24
24
  </Container>
25
25
  );
@@ -27,7 +27,7 @@ class DefaultView extends View {
27
27
 
28
28
  renderDetail() {
29
29
  if (!this.props.detail) {
30
- return null;
30
+ return <></>;
31
31
  }
32
32
  return (
33
33
  <Detail
@@ -50,16 +50,18 @@ class DefaultView extends View {
50
50
  }
51
51
 
52
52
  renderViews(workitemType, LeftPanel, useHinter, additionnalProps) {
53
+ const hide = !this.props.detail;
53
54
  switch (workitemType) {
54
55
  case 'workitem':
55
56
  return (
56
57
  <Splitter
57
58
  id={`goblin-desktop/default/${workitemType}/detail`}
58
59
  kind="vertical"
60
+ firstOverflow="visible"
59
61
  lastSize={this.props.width || '800px'}
60
62
  lastMinSize={this.props.width || '800px'}
61
63
  lastMaxSize="1500px"
62
- hide={!this.props.detail}
64
+ hide={hide}
63
65
  >
64
66
  <Splitter
65
67
  id={`goblin-desktop/default/${workitemType}`}
@@ -82,7 +84,7 @@ class DefaultView extends View {
82
84
  lastSize={this.props.width || '800px'}
83
85
  lastMinSize={this.props.width || '800px'}
84
86
  lastMaxSize="1500px"
85
- hide={!this.props.detail}
87
+ hide={hide}
86
88
  >
87
89
  {this.renderLeft(LeftPanel, useHinter, additionnalProps)}
88
90
  {this.renderDetail()}
@@ -11,6 +11,10 @@ export default function styles(theme) {
11
11
  display: 'flex',
12
12
  };
13
13
 
14
+ const formFields = {
15
+ width: 'fit-content',
16
+ };
17
+
14
18
  const detail = {
15
19
  height: '100%',
16
20
  display: 'flex',
@@ -240,6 +244,7 @@ export default function styles(theme) {
240
244
 
241
245
  return {
242
246
  form,
247
+ formFields,
243
248
  detail,
244
249
  board,
245
250
  roadbook,
@@ -703,12 +703,14 @@ class Workitem extends Form {
703
703
  validateOn="submit"
704
704
  model={`backend.${this.props.entityId}`}
705
705
  >
706
- {this.props.children}
707
- <WorkitemFields
708
- id={`workitem@${this.props.id.split('@')[0]}`}
709
- workitemId={this.props.id}
710
- readonly={true}
711
- />
706
+ <div className={this.styles.classNames.formFields}>
707
+ {this.props.children}
708
+ <WorkitemFields
709
+ id={`workitem@${this.props.id.split('@')[0]}`}
710
+ workitemId={this.props.id}
711
+ readonly={true}
712
+ />
713
+ </div>
712
714
  </Form>
713
715
  </ScrollableContainer>
714
716
  {this.renderActionButtons()}