Increased allowed max size of news and latest posts in about (#1369)
Fixed size of news and latest posts in about page when visualizing in mobile. Signed-off-by: George Araujo <george.gcac@gmail.com>
This commit is contained in:
parent
2a9b89d352
commit
2f035fa2a5
|
|
@ -2,7 +2,7 @@
|
|||
<div class="news">
|
||||
{% if site.latest_posts != blank -%}
|
||||
{%- assign latest_posts_size = site.posts | size -%}
|
||||
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 10vw"{% endif %}>
|
||||
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 60vw"{% endif %}>
|
||||
<table class="table table-sm table-borderless">
|
||||
{%- assign latest_posts = site.posts -%}
|
||||
{% if site.latest_posts.limit %}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
<div class="news">
|
||||
{% if site.news != blank -%}
|
||||
{%- assign news_size = site.news | size -%}
|
||||
<div class="table-responsive" {% if site.news.scrollable and news_size > 3 %}style="max-height: 10vw"{% endif %}>
|
||||
<div class="table-responsive" {% if site.news.scrollable and news_size > 3 %}style="max-height: 60vw"{% endif %}>
|
||||
<script>console.log({{news_size}});</script>
|
||||
<table class="table table-sm table-borderless">
|
||||
{%- assign news = site.news | reverse -%}
|
||||
{% if site.news.limit %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue