|
7 | 7 | import com.vaadin.flow.component.button.Button; |
8 | 8 | import com.vaadin.flow.component.button.ButtonVariant; |
9 | 9 | import com.vaadin.flow.component.html.Div; |
10 | | -import com.vaadin.flow.component.html.H1; |
11 | 10 | import com.vaadin.flow.component.icon.SvgIcon; |
12 | 11 | import com.vaadin.flow.component.orderedlayout.HorizontalLayout; |
13 | 12 | import com.vaadin.flow.dom.Element; |
@@ -47,22 +46,16 @@ public PluginsAppLayout(ObjectMapper objectMapper, |
47 | 46 | myPluginsCacheService = pluginsCacheService; |
48 | 47 | myTagsLocalizeLoader = tagsLocalizeLoader; |
49 | 48 | mySitemapCacheService = sitemapCacheService; |
50 | | - H1 title = new H1("plugins.consulo.app"); |
51 | | - title.getStyle().set("font-size", "var(--lumo-font-size-l)") |
52 | | - .set("left", "var(--lumo-space-l)") |
53 | | - .set("margin", "0") |
54 | | - .set("position", "absolute"); |
55 | 49 |
|
56 | 50 | HorizontalLayout navigation = getNavigation(); |
57 | | - navigation.getElement(); |
58 | 51 |
|
59 | 52 | myThemeIconHolder = new Div(); |
60 | 53 | myThemeIconHolder.getStyle().set("font-size", "var(--lumo-font-size-l)") |
61 | 54 | .set("right", "var(--lumo-space-l)") |
62 | 55 | .set("margin", "0") |
63 | 56 | .set("position", "absolute"); |
64 | 57 |
|
65 | | - addToNavbar(title, navigation, myThemeIconHolder); |
| 58 | + addToNavbar(navigation, myThemeIconHolder); |
66 | 59 | } |
67 | 60 |
|
68 | 61 | @Override |
@@ -159,7 +152,7 @@ private HorizontalLayout getNavigation() { |
159 | 152 | } |
160 | 153 |
|
161 | 154 | private RouterLink createLink(Class<? extends Component> viewClass) { |
162 | | - RouterLink link = new RouterLink("Home", viewClass); |
| 155 | + RouterLink link = new RouterLink("Plugins Repository", viewClass); |
163 | 156 |
|
164 | 157 | link.addClassNames(LumoUtility.Display.FLEX, |
165 | 158 | LumoUtility.AlignItems.CENTER, |
|
0 commit comments