sample-ui-component-library 0.0.15-dev → 0.0.16-dev
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
|
@@ -72,8 +72,8 @@ export const Tab = ({ id, parentId, node }) => {
|
|
|
72
72
|
<div className="tab-name">
|
|
73
73
|
<span>{node.name}</span>
|
|
74
74
|
</div>
|
|
75
|
-
<div className="close-icon">
|
|
76
|
-
<XLg size={18}
|
|
75
|
+
<div className="close-icon" onMouseDown={clickClose}>
|
|
76
|
+
<XLg size={18} />
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
</div>
|
|
@@ -93,9 +93,17 @@ Tab.propTypes = {
|
|
|
93
93
|
export const TabPreview = ({node}) => {
|
|
94
94
|
return (
|
|
95
95
|
<div className="tab" style={{ backgroundColor: ACTIVE_TAB_BG_COLOR, color: ACTIVE_TAB_FG_COLOR, opacity:0.5 }}>
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
<div className="tab-content">
|
|
97
|
+
<div className="icon">
|
|
98
|
+
<FileEarmark size={14} style={{ pointerEvents: "none" }} />
|
|
99
|
+
</div>
|
|
100
|
+
<div className="tab-name">
|
|
101
|
+
<span>{node.name}</span>
|
|
102
|
+
</div>
|
|
103
|
+
<div className="close-icon">
|
|
104
|
+
<XLg size={18} />
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
99
107
|
</div>
|
|
100
108
|
);
|
|
101
109
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.tab {
|
|
2
2
|
padding: 0px 18px;
|
|
3
|
-
cursor:
|
|
3
|
+
cursor: default !important;
|
|
4
4
|
height: 40px;
|
|
5
5
|
width: auto;
|
|
6
6
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
display:flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
vertical-align: middle;
|
|
14
|
+
overflow-y: hidden;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.tab > .tab-content > .icon {
|
|
@@ -34,4 +35,5 @@
|
|
|
34
35
|
align-items: center;
|
|
35
36
|
vertical-align: middle;
|
|
36
37
|
width:10px;
|
|
38
|
+
cursor: pointer;
|
|
37
39
|
}
|