From 415c977765bd8f922afca1fd64d38e698fc99d36 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Mon, 27 Nov 2017 17:16:15 +0200 Subject: [PATCH] Moved the max height of plugin boxes to only apply to tables because it was breaking the spacing --- .../com/djrapitops/plan/data/additional/TableContainer.java | 2 +- .../main/java/com/djrapitops/plan/utilities/html/Html.java | 1 + .../html/structure/AnalysisPluginsTabContentCreator.java | 6 +++--- .../plan/utilities/html/tables/PlayersTableCreator.java | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/additional/TableContainer.java b/Plan/src/main/java/com/djrapitops/plan/data/additional/TableContainer.java index 4636b26b8..b91e14454 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/additional/TableContainer.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/additional/TableContainer.java @@ -43,7 +43,7 @@ public final class TableContainer { } public String parseHtml() { - return Html.TABLE.parse() + + return Html.TABLE_SCROLL.parse() + parseHeader() + parseBody() + ""; diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/Html.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/Html.java index 822435f21..582bd9731 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/Html.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/Html.java @@ -54,6 +54,7 @@ public enum Html { // TABLE_END(""), TABLE(""), + TABLE_SCROLL("
"), TABLE_COLORED("
"), TABLE_HEAD("${0}"), TABLE_BODY("${0}"), diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/structure/AnalysisPluginsTabContentCreator.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/structure/AnalysisPluginsTabContentCreator.java index b1d6c967b..36aa2c248 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/structure/AnalysisPluginsTabContentCreator.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/structure/AnalysisPluginsTabContentCreator.java @@ -87,7 +87,7 @@ public class AnalysisPluginsTabContentCreator { } public static void appendThird(PluginData pluginData, InspectContainer container, StringBuilder generalTab) { - generalTab.append("
" + + generalTab.append("
" + "
" + "
" + "

") @@ -98,7 +98,7 @@ public class AnalysisPluginsTabContentCreator { } private static void appendTwoThirds(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) { - generalTab.append("
" + + generalTab.append("
" + "
" + "
" + "

") @@ -109,7 +109,7 @@ public class AnalysisPluginsTabContentCreator { } private static void appendWhole(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) { - generalTab.append("
" + + generalTab.append("
" + "
" + "
" + "

") diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/tables/PlayersTableCreator.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/tables/PlayersTableCreator.java index 010dea7d2..d5647e9bb 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/tables/PlayersTableCreator.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/tables/PlayersTableCreator.java @@ -129,7 +129,7 @@ public class PlayersTableCreator { } } catch (IllegalArgumentException ignored) { } - return tableContainer.parseHtml().replace(Html.TABLE.parse(), "

"); + return tableContainer.parseHtml().replace(Html.TABLE_SCROLL.parse(), "
"); }