Moved the max height of plugin boxes to only apply to tables because it was breaking the spacing

This commit is contained in:
Rsl1122 2017-11-27 17:16:15 +02:00
parent 89b4358d12
commit 415c977765
4 changed files with 6 additions and 5 deletions

View File

@ -43,7 +43,7 @@ public final class TableContainer {
}
public String parseHtml() {
return Html.TABLE.parse() +
return Html.TABLE_SCROLL.parse() +
parseHeader() +
parseBody() +
"</table>";

View File

@ -54,6 +54,7 @@ public enum Html {
//
TABLE_END("</tbody></table>"),
TABLE("<table class=\"table table-striped\">"),
TABLE_SCROLL("<table class=\"table table-striped scrollbar\">"),
TABLE_COLORED("<table class=\"bg-${0} table table-striped\">"),
TABLE_HEAD("<thead>${0}</thead>"),
TABLE_BODY("<tbody>${0}</tbody>"),

View File

@ -87,7 +87,7 @@ public class AnalysisPluginsTabContentCreator {
}
public static void appendThird(PluginData pluginData, InspectContainer container, StringBuilder generalTab) {
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4 plugin\">" +
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-4 col-lg-4\">" +
"<div class=\"card\">" +
"<div class=\"header\">" +
"<h2>")
@ -98,7 +98,7 @@ public class AnalysisPluginsTabContentCreator {
}
private static void appendTwoThirds(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) {
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8 plugin\">" +
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-8 col-lg-8\">" +
"<div class=\"card\">" +
"<div class=\"header\">" +
"<h2>")
@ -109,7 +109,7 @@ public class AnalysisPluginsTabContentCreator {
}
private static void appendWhole(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) {
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12 plugin\">" +
generalTab.append("<div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">" +
"<div class=\"card\">" +
"<div class=\"header\">" +
"<h2>")

View File

@ -129,7 +129,7 @@ public class PlayersTableCreator {
}
} catch (IllegalArgumentException ignored) {
}
return tableContainer.parseHtml().replace(Html.TABLE.parse(), "<table class=\"table table-bordered table-striped table-hover player-table dataTable\">");
return tableContainer.parseHtml().replace(Html.TABLE_SCROLL.parse(), "<table class=\"table table-bordered table-striped table-hover player-table dataTable\">");
}