fix div flex for other entries

This commit is contained in:
ReznoRMichael 2021-07-10 00:18:57 +02:00
commit 8613ce53b5
3 changed files with 13 additions and 1 deletions

View file

@ -5044,6 +5044,7 @@ function GenerateInnerHTML(db) {
var notchOvercharmedImage = "<img src='".concat(_img_notch_overcharmed_png__WEBPACK_IMPORTED_MODULE_5__, "' class='notch' alt='notch image' title='Charm Notch (Overcharmed)'>");
var geoNormalImage = "<img src='".concat(_img_geo_png__WEBPACK_IMPORTED_MODULE_6__, "' class='geo-symbol' alt='geo symbol image' title='Geo'>");
var geoShadeImage = "<img src='".concat(_img_geo_shade_png__WEBPACK_IMPORTED_MODULE_7__, "' class='geo-symbol' alt='shade geo symbol image' title='Shade Geo'>");
var div = "<div class='single-entry'>";
var divFlex = "<div class='flex-container align-center'>";
/* #################### Different behaviour depending on the section ####################### */
@ -5069,7 +5070,9 @@ function GenerateInnerHTML(db) {
/* ############## Looping entries (intro) ############### */
for (var entry in entries) {
obj.b = ["", ""];
obj.p = "<span class='p-left-small'></span>";
obj.span = ["<b>", "</b>"];
obj.div = div;
if (entries[entry].hasOwnProperty("icon")) {
switch (entries[entry].icon) {
@ -5191,6 +5194,7 @@ function GenerateInnerHTML(db) {
obj.span = ["<span>", "</span>"];
obj.icon = iconNull;
obj.textPrefix = "";
obj.div = div;
/* display only one (current) hint */
obj.textSuffix = entries[sections[section].current].spoiler;
@ -5225,9 +5229,11 @@ function GenerateInnerHTML(db) {
obj.textPrefix = entries[_entry].name;
obj.textSuffix = "\u2014 ".concat(entries[_entry].spoiler);
obj.wiki = entries[_entry].wiki;
obj.p = "<span class='p-left-small'></span>";
obj.b = ["<a class=\"wiki\" href=\"".concat(WIKI_LINK).concat(obj.wiki, "\" target=\"_blank\">"), "</a>"];
obj.span = ["<span class='spoiler-span'>", "</span>"];
obj.spoiler = ["<span class='spoiler-text'>", "</span>"];
obj.div = div;
if (entries[_entry].hasOwnProperty("amount")) {
if (entries[_entry].hasOwnProperty("disabled")) {

File diff suppressed because one or more lines are too long