Skip to content

Commit 2f035fa

Browse files
authored
Increased allowed max size of news and latest posts in about (alshedivat#1369)
Fixed size of news and latest posts in about page when visualizing in mobile. Signed-off-by: George Araujo <george.gcac@gmail.com>
1 parent 2a9b89d commit 2f035fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_includes/latest_posts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="news">
33
{% if site.latest_posts != blank -%}
44
{%- assign latest_posts_size = site.posts | size -%}
5-
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 10vw"{% endif %}>
5+
<div class="table-responsive" {% if site.latest_posts.scrollable and latest_posts_size > 3 %}style="max-height: 60vw"{% endif %}>
66
<table class="table table-sm table-borderless">
77
{%- assign latest_posts = site.posts -%}
88
{% if site.latest_posts.limit %}

_includes/news.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<div class="news">
33
{% if site.news != blank -%}
44
{%- assign news_size = site.news | size -%}
5-
<div class="table-responsive" {% if site.news.scrollable and news_size > 3 %}style="max-height: 10vw"{% endif %}>
5+
<div class="table-responsive" {% if site.news.scrollable and news_size > 3 %}style="max-height: 60vw"{% endif %}>
6+
<script>console.log({{news_size}});</script>
67
<table class="table table-sm table-borderless">
78
{%- assign news = site.news | reverse -%}
89
{% if site.news.limit %}

0 commit comments

Comments
 (0)