tycho-components 0.45.12 → 0.45.14
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.
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
margin: 0;
|
|
66
66
|
border: none;
|
|
67
67
|
border-radius: 0;
|
|
68
|
-
font-family:
|
|
68
|
+
font-family: "Work Sans", sans-serif;
|
|
69
69
|
@include button-small;
|
|
70
70
|
color: var(--text-on-color-dark);
|
|
71
71
|
background-color: var(--button-secondary-default);
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
padding: var(--spacing-0) 28px var(--spacing-0) var(--spacing-100);
|
|
104
104
|
border: none;
|
|
105
105
|
border-radius: 0;
|
|
106
|
-
font-family:
|
|
106
|
+
font-family: "Work Sans", sans-serif;
|
|
107
107
|
@include button-small;
|
|
108
108
|
color: var(--text-on-color-dark);
|
|
109
109
|
background-color: var(--button-secondary-default);
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
.app-table-pagination {
|
|
205
205
|
flex-direction: row;
|
|
206
206
|
justify-content: space-between;
|
|
207
|
-
padding: 12px
|
|
207
|
+
padding: 12px;
|
|
208
208
|
|
|
209
209
|
.itens-container {
|
|
210
210
|
.itens-page {
|
|
@@ -169,15 +169,23 @@
|
|
|
169
169
|
|
|
170
170
|
@media (max-width: 768px) {
|
|
171
171
|
.modal-access-user {
|
|
172
|
-
top:
|
|
172
|
+
top: 48% !important;
|
|
173
173
|
|
|
174
174
|
.body {
|
|
175
175
|
flex-direction: column;
|
|
176
|
+
max-height: 80vh;
|
|
176
177
|
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
> .row-info {
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
.portal-container {
|
|
181
|
+
border: none;
|
|
182
|
+
padding-left: 0px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.corpora-container {
|
|
186
|
+
border-left: none;
|
|
187
|
+
padding: 16px 0px 0px;
|
|
188
|
+
}
|
|
181
189
|
}
|
|
182
190
|
}
|
|
183
191
|
}
|
|
@@ -185,6 +193,9 @@
|
|
|
185
193
|
|
|
186
194
|
@media (max-width: 767px) {
|
|
187
195
|
.modal-access-user {
|
|
188
|
-
top:
|
|
196
|
+
top: 50% !important;
|
|
197
|
+
.body {
|
|
198
|
+
max-height: 90vh;
|
|
199
|
+
}
|
|
189
200
|
}
|
|
190
201
|
}
|
|
@@ -111,5 +111,33 @@ export default function ConlluGraphViewer({ conllu, editable = false, onConlluCh
|
|
|
111
111
|
}
|
|
112
112
|
: {}),
|
|
113
113
|
};
|
|
114
|
-
return (_jsxs("div", { className: classNames('conllu-graph-viewer-container', className), children: [
|
|
114
|
+
return (_jsxs("div", { className: classNames('conllu-graph-viewer-container', className), children: [_jsx("div", { className: "floating-buttons", children: getButtons(handleZoomIn, handleZoomOut, handleRecenter, handleGenerateImage)
|
|
115
|
+
.filter((btn) => btn.condition)
|
|
116
|
+
.map((btn, i) => (_jsx(IconButton, { name: btn.icon, title: t(btn.title), onClick: btn.onClick, size: "medium", iconSize: "medium", mode: "ghost" }, i))) }), _jsxs("svg", { ref: svgRef, id: conlluViewerConfigurations.svgID, width: "100%", height: "100%", preserveAspectRatio: "xMidYMid meet", children: [drawDependencies(rendererProps), drawItems(rendererProps), drawMultis(rendererProps)] })] }));
|
|
115
117
|
}
|
|
118
|
+
const getButtons = (zoomIn, zoomOut, recenter, download) => [
|
|
119
|
+
{
|
|
120
|
+
condition: true,
|
|
121
|
+
title: 'button.tooltip.zoom.in',
|
|
122
|
+
onClick: zoomIn,
|
|
123
|
+
icon: 'zoom_in',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
condition: true,
|
|
127
|
+
title: 'button.tooltip.zoom.out',
|
|
128
|
+
onClick: zoomOut,
|
|
129
|
+
icon: 'zoom_out',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
condition: true,
|
|
133
|
+
title: 'button.tooltip.recenter',
|
|
134
|
+
onClick: recenter,
|
|
135
|
+
icon: 'center_focus_weak',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
condition: true,
|
|
139
|
+
title: 'button.tooltip.download',
|
|
140
|
+
onClick: download,
|
|
141
|
+
icon: 'download',
|
|
142
|
+
},
|
|
143
|
+
];
|
|
@@ -71,3 +71,15 @@
|
|
|
71
71
|
justify-content: center;
|
|
72
72
|
background-color: var(--background-default, #fff);
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
@media (max-width: 1366px) {
|
|
76
|
+
.tree-view-container .canvas-tree {
|
|
77
|
+
height: 78vh;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 768px) {
|
|
82
|
+
.tree-view-container .canvas-tree {
|
|
83
|
+
height: 85vh;
|
|
84
|
+
}
|
|
85
|
+
}
|