Skip to content

Commit

Permalink
Fix #3904, #3884: fix website horizontal overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Sep 18, 2024
1 parent 9a1b620 commit 1bc01f2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Bulma Changelog

## 1.0.3

### Bug fixes

- Fix #3904, #3884: fix website horizontal overflow

## 1.0.2

### Improvements
Expand Down
40 changes: 21 additions & 19 deletions docs/_includes/global/nav-item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% assign link = site.data.links.by_id[include.link_id] %}
{% assign cleanpath = link.path | remove: '/' %}
{% assign link = site.data.links.by_id[include.link_id] %} {% assign cleanpath =
link.path | remove: '/' %}

<a
class="
Expand All @@ -17,28 +17,30 @@
{% endif %}
"
title="{{ link.subtitle | strip_html }}"
{% if link.href %}
href="{{ link.href }}"
target="_blank"
{% else %}
href="{{ site.url }}{{ link.path }}"
{% endif %}
{%
if
link.href
%}
href="{{ link.href }}"
target="_blank"
{%
else
%}
href="{{ site.url }}{{ link.path }}"
{%
endif
%}
>
<span class="icon">
<i class="{{ link.icon }}"></i>
</span>

{% unless link.icon_only %}
<span class="bd-nav-item-name">
{% if link.long_name %}
<span class="is-hidden-fullhd">{{ link.name }}</span>
<span class="is-hidden is-block-fullhd">{{ link.long_name }}</span>
{% else %}
{{ link.name }}
{% endif %}
{% if include.link_id == "shop" %}
<span class="tag is-success ml-1">New!</span>
{% endif %}
</span>
<span class="bd-nav-item-name">
{% if link.long_name %}
<span class="is-hidden-fullhd">{{ link.name }}</span>
<span class="is-hidden is-block-fullhd">{{ link.long_name }}</span>
{% else %} {{ link.name }} {% endif %}
</span>
{% endunless %}
</a>
1 change: 1 addition & 0 deletions docs/_sass/docs/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
display: flex;
flex-direction: column;
gap: var(--p);
overflow: hidden;
}

.bd-docs-button {
Expand Down
1 change: 1 addition & 0 deletions docs/assets/css/website.css
Original file line number Diff line number Diff line change
Expand Up @@ -33628,6 +33628,7 @@ has-background-moon.is-hoverable:active {
display: flex;
flex-direction: column;
gap: var(--p);
overflow: hidden;
}

.bd-docs-button {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/css/website.min.css

Large diffs are not rendered by default.

0 comments on commit 1bc01f2

Please sign in to comment.