mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use JavaScript to collapse long comments
Instead of using CSS to limit the height of package comments as
implemented in 7b13203
(Limit comment height to 15 lines, 2016-03-12),
use JavaScript to collapse long comments and add a link to expand them.
Clicking the same link twice results in the corresponding comment being
collapsed again.
If JavaScript is disabled, the full comments are shown (without any
possibility to collapse or expand).
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
44858e0618
commit
4abde895a5
3 changed files with 36 additions and 6 deletions
|
@ -148,8 +148,3 @@ label.confirmation,
|
|||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#news div p {
|
||||
max-height: 15em;
|
||||
overflow: auto;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue