mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-05 10:20:23 +01:00
Moved the max height of plugin boxes to only apply to tables because it was breaking the spacing
This commit is contained in:
parent
89b4358d12
commit
415c977765
@ -43,7 +43,7 @@ public final class TableContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String parseHtml() {
|
public String parseHtml() {
|
||||||
return Html.TABLE.parse() +
|
return Html.TABLE_SCROLL.parse() +
|
||||||
parseHeader() +
|
parseHeader() +
|
||||||
parseBody() +
|
parseBody() +
|
||||||
"</table>";
|
"</table>";
|
||||||
|
@ -54,6 +54,7 @@ public enum Html {
|
|||||||
//
|
//
|
||||||
TABLE_END("</tbody></table>"),
|
TABLE_END("</tbody></table>"),
|
||||||
TABLE("<table class=\"table table-striped\">"),
|
TABLE("<table class=\"table table-striped\">"),
|
||||||
|
TABLE_SCROLL("<table class=\"table table-striped scrollbar\">"),
|
||||||
TABLE_COLORED("<table class=\"bg-${0} table table-striped\">"),
|
TABLE_COLORED("<table class=\"bg-${0} table table-striped\">"),
|
||||||
TABLE_HEAD("<thead>${0}</thead>"),
|
TABLE_HEAD("<thead>${0}</thead>"),
|
||||||
TABLE_BODY("<tbody>${0}</tbody>"),
|
TABLE_BODY("<tbody>${0}</tbody>"),
|
||||||
|
@ -87,7 +87,7 @@ public class AnalysisPluginsTabContentCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void appendThird(PluginData pluginData, InspectContainer container, StringBuilder generalTab) {
|
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=\"card\">" +
|
||||||
"<div class=\"header\">" +
|
"<div class=\"header\">" +
|
||||||
"<h2>")
|
"<h2>")
|
||||||
@ -98,7 +98,7 @@ public class AnalysisPluginsTabContentCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void appendTwoThirds(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) {
|
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=\"card\">" +
|
||||||
"<div class=\"header\">" +
|
"<div class=\"header\">" +
|
||||||
"<h2>")
|
"<h2>")
|
||||||
@ -109,7 +109,7 @@ public class AnalysisPluginsTabContentCreator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void appendWhole(PluginData pluginData, AnalysisContainer container, StringBuilder generalTab) {
|
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=\"card\">" +
|
||||||
"<div class=\"header\">" +
|
"<div class=\"header\">" +
|
||||||
"<h2>")
|
"<h2>")
|
||||||
|
@ -129,7 +129,7 @@ public class PlayersTableCreator {
|
|||||||
}
|
}
|
||||||
} catch (IllegalArgumentException ignored) {
|
} 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\">");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user