Skip to content

Commit

Permalink
fix(ui): min-height of page layout exceeds the mobile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed May 19, 2023
1 parent f6bf6d0 commit 73af591
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _includes/post-paginator.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- The paginator for post list on HomgPage. -->

<ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
<ul class="pagination align-items-center mt-4 mb-5 ps-lg-2">
<!-- left arrow -->
{% if paginator.previous_page %}
{% assign prev_url = paginator.previous_page_path | relative_url %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% include lang.html %}

<div id="page-category">
<div id="page-category" class="mb-5">
<h1 class="ps-lg-2">
<i class="far fa-folder-open fa-fw text-muted"></i>
{{ page.title }}
Expand Down
13 changes: 11 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@
{% endfor %}
{% endif %}

<div id="post-list">
{% if paginator.total_pages > 1 %}
{% assign has_paginator = true %}
{% endif %}

<div
id="post-list"
{% unless has_paginator %}
class="mb-5"
{% endunless %}
>
{% for post in posts %}
<a href="{{ post.url | relative_url }}" class="card-wrapper">
<div class="card post-preview flex-md-row-reverse">
Expand Down Expand Up @@ -105,6 +114,6 @@ <h1 class="card-title my-2 mt-md-0">
</div>
<!-- #post-list -->

{% if paginator.total_pages > 1 %}
{% if has_paginator %}
{% include post-paginator.html %}
{% endif %}
8 changes: 2 additions & 6 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
{% include lang.html %}
{% include origin-type.html %}

{% if layout.tail_includes %}
{% assign has_tail = true %}
{% endif %}

<div class="row{% unless has_tail %} mb-5{% endunless %}">
<div class="row">
<!-- core -->
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
{% capture padding %}
Expand Down Expand Up @@ -56,7 +52,7 @@ <h1 class="dynamic-title">
</div>

<!-- tail -->
{% if has_tail %}
{% if layout.tail_includes %}
<div class="row">
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
{% for _include in layout.tail_includes %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% include lang.html %}

<div id="page-tag">
<div id="page-tag" class="mb-5">
<h1 class="ps-lg-2">
<i class="fa fa-tag fa-fw text-muted"></i>
{{ page.title }}
Expand Down

0 comments on commit 73af591

Please sign in to comment.