Browse Source

marcels improvements

master
GAM 4 years ago
parent
commit
3bba5f5d17
3 changed files with 9 additions and 9 deletions
  1. +4
    -4
      src/main/java/com/example/application/views/main/MainView.java
  2. +1
    -1
      src/main/java/com/example/application/views/results/ResultsView.java
  3. +4
    -4
      src/main/java/com/example/application/views/table/TableView.java

+ 4
- 4
src/main/java/com/example/application/views/main/MainView.java View File

@ -29,8 +29,8 @@ import java.util.Optional;
* The main view is a top-level placeholder for other views.
*/
@CssImport("./views/main/main-view.css")
@PWA(name = "Schachliga DeLuxe",
shortName = "Schachliga DeLuxe",
@PWA(name = "Schachliga DACH",
shortName = "Schachliga DACH",
iconPath = "images/logo.png",
enableInstallPrompt = false)
@JsModule("./styles/shared-styles.js")
@ -73,8 +73,8 @@ public class MainView extends AppLayout {
HorizontalLayout logoLayout = new HorizontalLayout();
logoLayout.setId("logo");
logoLayout.setAlignItems(FlexComponent.Alignment.CENTER);
logoLayout.add(new Image("images/logo.png", "Schachliga DeLuxe logo"));
logoLayout.add(new H1("Schachliga DeLuxe"));
logoLayout.add(new Image("images/logo.png", "Schachliga DACH logo"));
logoLayout.add(new H1("Schachliga DACH"));
layout.add(logoLayout, menu);
return layout;
}


+ 1
- 1
src/main/java/com/example/application/views/results/ResultsView.java View File

@ -26,7 +26,7 @@ import javax.swing.text.NumberFormatter;
@CssImport("./views/results/results-view.css")
@Route(value = "results", layout = MainView.class)
@PageTitle("Results")
@PageTitle("Schachliga DACH - Results")
public class ResultsView extends SeasonAndMatchdayNavigationView {
private final MatchService matchService;


+ 4
- 4
src/main/java/com/example/application/views/table/TableView.java View File

@ -21,7 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
@CssImport("./views/table/table-view.css")
@Route(value = "table", layout = MainView.class)
@RouteAlias(value = "", layout = MainView.class)
@PageTitle("Table")
@PageTitle("Schachliga DACH - Table")
public class TableView extends SeasonAndMatchdayNavigationView {
private final PlayerService playerService;
@ -88,7 +88,7 @@ public class TableView extends SeasonAndMatchdayNavigationView {
getGrid().addColumn((ValueProvider<PlayerForTable, Player>) PlayerForTable::getPlayer)
.setHeader(headerPlayer)
.setTextAlign(ColumnTextAlign.CENTER)
.setTextAlign(ColumnTextAlign.START)
.setWidth("13em");
getGrid().addColumn((ValueProvider<PlayerForTable, Integer>) PlayerForTable::getAmountOfMatches)
@ -133,9 +133,9 @@ public class TableView extends SeasonAndMatchdayNavigationView {
})
.setHeader(headerDiff)
.setTextAlign(ColumnTextAlign.CENTER)
.setWidth("3em");
.setWidth("5em");
getGrid().setWidth("49em");
getGrid().setWidth("51em");
getGrid().setHeightByRows(true);
getGrid().addClassName("my_grid");
}


Loading…
Cancel
Save