ydb-embedded-ui 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.6.2...v1.6.3) (2022-06-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ClipboardButton:** clickable area now matches visual area ([8c0b5ef](https://github.com/ydb-platform/ydb-embedded-ui/commit/8c0b5ef27d5d31b28a29455b3019de23bdbf8f68))
9
+
3
10
  ## [1.6.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.6.1...v1.6.2) (2022-06-07)
4
11
 
5
12
 
@@ -80,15 +80,15 @@ class EntityStatus extends React.Component {
80
80
  )}
81
81
  {this.renderLink()}
82
82
  {hasClipboardButton && (
83
- <span
83
+ <Button
84
+ component="span"
85
+ size="s"
84
86
  className={b('clipboard-button', {
85
87
  visible: false,
86
88
  })}
87
89
  >
88
- <Button size="s">
89
- <ClipboardButton text={name} size={16} />
90
- </Button>
91
- </span>
90
+ <ClipboardButton text={name} size={16} />
91
+ </Button>
92
92
  )}
93
93
  </div>
94
94
  );
@@ -17,11 +17,16 @@
17
17
  color: var(--yc-color-text-secondary);
18
18
 
19
19
  .yc-button__text {
20
- margin: 0 4px;
20
+ margin: 0;
21
+ }
22
+
23
+ .yc-clipboard-button {
24
+ width: 24px;
25
+ height: 24px;
21
26
  }
22
27
 
23
28
  &_visible {
24
- display: flex;
29
+ display: inline-flex;
25
30
  }
26
31
  }
27
32
 
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import {connect} from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- import {i18n as YDBComponentsI18N} from 'ydb-ui-components/build/components/i18n';
5
+ import {i18n as YDBComponentsI18N} from 'ydb-ui-components';
6
6
  import {I18N, i18n} from '../../utils/i18n';
7
7
 
8
8
  import ContentWrapper, {Content} from './Content';
@@ -100,6 +100,7 @@ body,
100
100
 
101
101
  .yc-clipboard-button {
102
102
  display: inline-flex;
103
+ justify-content: center;
103
104
  align-items: center;
104
105
  }
105
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -40,7 +40,7 @@
40
40
  "reselect": "4.0.0",
41
41
  "sass": "1.32.8",
42
42
  "web-vitals": "1.1.2",
43
- "ydb-ui-components": "2.0.1"
43
+ "ydb-ui-components": "2.0.2"
44
44
  },
45
45
  "scripts": {
46
46
  "start": "react-app-rewired start",