diff options
author | Yorhel <git@yorhel.nl> | 2016-02-12 21:22:58 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-02-12 21:22:58 +0100 |
commit | d33929c047478ec10bf96bfa9b7e33fc0439f429 (patch) | |
tree | ff544e79cee98d5203e897a6789cde113b1c7ca7 | |
parent | 323f1d599316b0c17aa47e97b80cc842e3d90ab5 (diff) |
JS: Fix char_roles bug + CSS: Minor tweaks to main VN info layout
-rw-r--r-- | data/style.css | 4 | ||||
-rwxr-xr-x | util/jsgen.pl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/data/style.css b/data/style.css index 9053bbdd..b3495853 100644 --- a/data/style.css +++ b/data/style.css @@ -334,14 +334,14 @@ h1.boxtitle, h1.boxtitle a { /***** VN page *******/ -div.vndetails { margin: 0 auto; width: 800px; } +div.vndetails { margin: 0 auto; max-width: 770px; } div.vnimg { float: left; width: 250px; margin: 0 10px; } div.vnimg i { display: block; width: 100%; text-align: center; font-size: 10px; } div.vnimg p { text-align: center; padding: 0px; margin: 0; } .vndesc h2 { margin: 5px 0 0 0; } .vndesc p { padding: 0 0 0 5px; } p#nsfw_hid { display: block; cursor: pointer; } -div.vndetails table { float: left; width: 530px; } +div.vndetails table { float: left; width: 500px; } div.vndetails table td.key { width: 80px; } div.vndetails table dt { float: left; font-style: italic; } div.vndetails table dd { margin-left: 90px; } diff --git a/util/jsgen.pl b/util/jsgen.pl index cf2c5638..8317f86f 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -38,7 +38,7 @@ sub vars { age_ratings => [ map [ $_, $_ == -1 ? 'Unknown' : $_ == 0 ? 'All ages' : "$_+" ], @{$S{age_ratings}} ], languages => [ map [ $_, $S{languages}{$_} ], keys %{$S{languages}} ], platforms => [ map [ $_, $S{platforms}{$_} ], keys %{$S{platforms}} ], - char_roles => [ map [ $_, $S{char_roles}{$_} ], keys %{$S{char_roles}} ], + char_roles => [ map [ $_, $S{char_roles}{$_}[0] ], keys %{$S{char_roles}} ], media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], keys %{$S{media}} ], release_types => [ map [ $_, ucfirst $_ ], @{$S{release_types}} ], animated => [ map [ $_, $S{animated}[$_] ], 0..$#{$S{animated}} ], |