mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Fixed Plugins tab spacing (Analysis)
This commit is contained in:
parent
511230a186
commit
6eab68a0ca
@ -141,7 +141,8 @@ public abstract class PluginData {
|
||||
* @see AnalysisType
|
||||
*/
|
||||
public final String parseContainer(String modifier, String contents) {
|
||||
return "<div class=\"plugin-data\">" + (icon.isEmpty() ? "<br>" : Html.FONT_AWESOME_ICON.parse(icon)) + " " + modifier + prefix + contents + suffix + "</div>";
|
||||
boolean html = analysisTypes.contains(AnalysisType.HTML);
|
||||
return "<div class=\"plugin-data\">" + (html ? "" : "<p>") + (icon.isEmpty() ? "" : Html.FONT_AWESOME_ICON.parse(icon)) + " " + modifier + prefix + contents + suffix + (html ? "" : "</p>") + "</div>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -132,6 +132,7 @@ public class UserInfoTable extends UserIDTable {
|
||||
" WHERE " + columnUserID + "=" + usersTable.statementSelectID +
|
||||
" AND " + columnServerID + "=" + serverTable.statementSelectServerID
|
||||
);
|
||||
statement.setFetchSize(20000);
|
||||
statement.setString(1, uuid.toString());
|
||||
statement.setString(2, serverUUID.toString());
|
||||
set = statement.executeQuery();
|
||||
@ -176,7 +177,7 @@ public class UserInfoTable extends UserIDTable {
|
||||
" JOIN " + usersTable + " on " + usersIDColumn + "=" + columnUserID +
|
||||
" WHERE " + columnServerID + "=" + serverTable.statementSelectServerID
|
||||
);
|
||||
statement.setFetchSize(2000);
|
||||
statement.setFetchSize(20000);
|
||||
statement.setString(1, serverUUID.toString());
|
||||
set = statement.executeQuery();
|
||||
while (set.next()) {
|
||||
@ -214,7 +215,7 @@ public class UserInfoTable extends UserIDTable {
|
||||
" JOIN " + usersTable + " on " + usersIDColumn + "=" + columnUserID +
|
||||
" JOIN " + serverTable + " on " + serverIDColumn + "=" + columnServerID
|
||||
);
|
||||
statement.setFetchSize(5000);
|
||||
statement.setFetchSize(20000);
|
||||
set = statement.executeQuery();
|
||||
Map<UUID, List<UserInfo>> serverMap = new HashMap<>();
|
||||
while (set.next()) {
|
||||
|
@ -286,6 +286,7 @@ public class UsersTable extends UserIDTable {
|
||||
" (SELECT " + columnID + " FROM " + nicknamesTable +
|
||||
" WHERE " + nicknamesTable.getColumnNick() + " LIKE LOWER(?))"
|
||||
);
|
||||
statement.setFetchSize(5000);
|
||||
statement.setString(1, searchString);
|
||||
statement.setString(2, searchString);
|
||||
|
||||
|
@ -304,7 +304,7 @@ public class HtmlStructure {
|
||||
html.append("<div class=\"box plugin\">");
|
||||
|
||||
for (String ph : pluginPhs) {
|
||||
html.append(ph).append("<br>");
|
||||
html.append(ph);
|
||||
}
|
||||
|
||||
html.append("</div></div>"); // Closes column
|
||||
|
@ -292,6 +292,15 @@ tr:nth-child(odd) {background: #eee}
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.plugin {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.plugin p, i, table {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1680px) {
|
||||
.nav-button {
|
||||
font-size: 19px;
|
||||
|
Loading…
Reference in New Issue
Block a user