Skip to content

Commit 218bd4e

Browse files
paodbjavier-godoy
authored andcommitted
feat: add styles to content to keep compatibility with previous version
1 parent a16eb4f commit 218bd4e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/orgchart/OrgChart.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
@CssImport("orgchart/dist/css/jquery.orgchart.min.css")
5454
@Tag("fc-orgchart")
5555
@JsModule("./fc-orgchart.js")
56+
@CssImport("./fc-orgchart-styles.css")
5657
public class OrgChart extends Div {
5758

5859
private OrgChartItem orgChartItem;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*-
2+
* #%L
3+
* OrgChart Add-on
4+
* %%
5+
* Copyright (C) 2017 - 2023 Flowing Code S.A.
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
21+
.orgchart .node {
22+
width: 140px;
23+
}
24+
25+
.orgchart .node .content {
26+
overflow: hidden;
27+
}

0 commit comments

Comments
 (0)