diff --git a/app/views/anime/details.php b/app/views/anime/details.php index eea521c2..127a5706 100644 --- a/app/views/anime/details.php +++ b/app/views/anime/details.php @@ -79,7 +79,7 @@ 0): ?>

Characters

-
+
diff --git a/app/views/character.php b/app/views/character.php index 41a63087..a938a50c 100644 --- a/app/views/character.php +++ b/app/views/character.php @@ -1,12 +1,126 @@ -
+ +
- +
-

+

-

+

+ + +

Media

+
+ +
+

Anime

+
+ +
+ generate('anime.details', ['id' => $anime['attributes']['slug']]); + $titles = Kitsu::filterTitles($anime['attributes']); + ?> + + + + +
+ +
+
+ + +
+

Manga

+
+ + +
+ generate('manga.details', ['id' => $manga['attributes']['slug']]); + $titles = Kitsu::filterTitles($manga['attributes']); + ?> + + + + +
+ + +
+
+ +
+ + +
+ +

Castings

+ $entries): ?> +

+ $casting): ?> +
+ + + + + + + + + + + +
Cast MemberSeries
+
+ +
+ +
+
+
+
+ +
+ generate('anime.details', ['id' => $series['attributes']['slug']]); + $titles = Kitsu::filterTitles($series['attributes']); + ?> + + + + +
+ +
+
+ + + +
\ No newline at end of file diff --git a/public/css/base.css b/public/css/base.css index a003688e..fb108671 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -753,11 +753,11 @@ a:hover, a:active { .justify {text-align:justify} -.align_center {text-align:center} +.align_center {text-align:center !important} -.align_left {text-align:left} +.align_left {text-align:left !important} -.align_right {text-align:right} +.align_right {text-align:right !important} .valign_top {vertical-align:top} @@ -1263,7 +1263,12 @@ a:hover, a:active { font-size:inherit; } -.details.fixed { +.description { + max-width:800px; + max-width:80rem; +} + +.fixed { max-width:930px; max-width:93rem; } @@ -1339,6 +1344,11 @@ a:hover, a:active { width: 100%; } +.min-table { + min-width: 0; + margin-left: 0; +} + /* ---------------------------------------------------------------------------- User page styles -----------------------------------------------------------------------------*/ diff --git a/public/css/base.myth.css b/public/css/base.myth.css index 60fae728..588c02f8 100644 --- a/public/css/base.myth.css +++ b/public/css/base.myth.css @@ -79,9 +79,9 @@ a:hover, a:active { } .justify {text-align:justify} -.align_center {text-align:center} -.align_left {text-align:left} -.align_right {text-align:right} +.align_center {text-align:center !important} +.align_left {text-align:left !important} +.align_right {text-align:right !important} .valign_top {vertical-align:top} @@ -521,7 +521,11 @@ a:hover, a:active { font-size:inherit; } -.details.fixed { +.description { + max-width:80rem; +} + +.fixed { max-width:93rem; } @@ -590,6 +594,11 @@ a:hover, a:active { width: 100%; } +.min-table { + min-width: 0; + margin-left: 0; +} + /* ---------------------------------------------------------------------------- User page styles -----------------------------------------------------------------------------*/ diff --git a/src/API/JsonAPI.php b/src/API/JsonAPI.php index 210afc5a..0bd1fe75 100644 --- a/src/API/JsonAPI.php +++ b/src/API/JsonAPI.php @@ -127,13 +127,6 @@ class JsonAPI { $typeKey = $props['data'][$j]['type']; $relationship =& $item['relationships'][$relType]; - unset($relationship['data'][$j]); - - if (empty($relationship['data'])) - { - unset($relationship['data']); - } - if ($relType === $typeKey) { $relationship[$idKey] = $included[$typeKey][$idKey];