[aur-dev] [PATCH] Limit comment height to 15 lines

Eric Engestrom eric at engestrom.ch
Sat Mar 12 16:30:54 UTC 2016


Sorry, I meant to add a comment to that patch :]

This is related to the discussion here:
https://lists.archlinux.org/pipermail/aur-general/2016-March/032139.html
about keeping the AUR readable even when people post huge dumps.

The solution suggested here is to make any comment longer than 15 lines
appear in its own scrollable box.

Cheers,
Eric


On Sat, Mar 12, 2016 at 02:50:03PM +0000, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric at engestrom.ch>
> ---
>  web/html/css/aurweb.css | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
> index f5e1037..f777ab8 100644
> --- a/web/html/css/aurweb.css
> +++ b/web/html/css/aurweb.css
> @@ -148,3 +148,8 @@ label.confirmation,
>  	color: red;
>  	font-weight: bold;
>  }
> +
> +#news div p {
> +	max-height: 15em;
> +	overflow: auto;
> +}
> -- 
> 2.7.2
> 


More information about the aur-dev mailing list