diff options
author | Yorhel <git@yorhel.nl> | 2021-03-02 12:16:12 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-03-02 12:16:12 +0100 |
commit | 02bf350362ef33b4aa57982a24999432bb7a5354 (patch) | |
tree | addefb87838ebd262204cef9542d796d40b3c0ac /lib | |
parent | 0b3dd2b68334110cf8dd11a1f9c44884d869428d (diff) |
CSS: Fix formatting of block elements in entry descriptions
Fixes https://vndb.org/t2520.542
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/Producers/Page.pm | 2 | ||||
-rw-r--r-- | lib/VNWeb/Releases/Page.pm | 2 | ||||
-rw-r--r-- | lib/VNWeb/Staff/Page.pm | 2 | ||||
-rw-r--r-- | lib/VNWeb/TT/TagPage.pm | 2 | ||||
-rw-r--r-- | lib/VNWeb/TT/TraitPage.pm | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/VNWeb/Producers/Page.pm b/lib/VNWeb/Producers/Page.pm index 5fe9a57a..128b1ad7 100644 --- a/lib/VNWeb/Producers/Page.pm +++ b/lib/VNWeb/Producers/Page.pm @@ -59,7 +59,7 @@ sub info_ { }, grep $rel{$_}, keys %PRODUCER_RELATION; } if $p->{relations}->@*; - p_ class => 'description', sub { lit_ bb_format $p->{desc} } if length $p->{desc}; + div_ class => 'description', sub { lit_ bb_format $p->{desc} } if length $p->{desc}; } diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm index 0c771a71..936829e0 100644 --- a/lib/VNWeb/Releases/Page.pm +++ b/lib/VNWeb/Releases/Page.pm @@ -222,7 +222,7 @@ TUWF::get qr{/$RE{rrev}} => sub { h1_ sub { txt_ $r->{title}; debug_ $r }; h2_ class => 'alttitle', lang_attr($r->{lang}), $r->{original} if length $r->{original}; _infotable_ $r; - p_ class => 'description', sub { lit_ bb_format $r->{notes} } if $r->{notes}; + div_ class => 'description', sub { lit_ bb_format $r->{notes} } if $r->{notes}; }; }; }; diff --git a/lib/VNWeb/Staff/Page.pm b/lib/VNWeb/Staff/Page.pm index c8665eaf..84962044 100644 --- a/lib/VNWeb/Staff/Page.pm +++ b/lib/VNWeb/Staff/Page.pm @@ -180,7 +180,7 @@ TUWF::get qr{/$RE{srev}} => sub { h1_ sub { txt_ $main->{name}; debug_ $s }; h2_ class => 'alttitle', lang => $s->{lang}, $main->{original} if $main->{original}; _infotable_ $main, $s; - p_ class => 'description', sub { lit_ bb_format $s->{desc} }; + div_ class => 'description', sub { lit_ bb_format $s->{desc} }; }; _roles_ $s; diff --git a/lib/VNWeb/TT/TagPage.pm b/lib/VNWeb/TT/TagPage.pm index 9da7a996..b0d97e69 100644 --- a/lib/VNWeb/TT/TagPage.pm +++ b/lib/VNWeb/TT/TagPage.pm @@ -34,7 +34,7 @@ sub infobox_ { parents_ g => $t; - p_ class => 'description', sub { + div_ class => 'description', sub { lit_ bb_format $t->{description}; } if $t->{description}; diff --git a/lib/VNWeb/TT/TraitPage.pm b/lib/VNWeb/TT/TraitPage.pm index 85c2c15e..8679ed91 100644 --- a/lib/VNWeb/TT/TraitPage.pm +++ b/lib/VNWeb/TT/TraitPage.pm @@ -34,7 +34,7 @@ sub infobox_ { parents_ i => $t; - p_ class => 'description', sub { + div_ class => 'description', sub { lit_ bb_format $t->{description}; } if $t->{description}; |