Skip to content

Commit

Permalink
CSS: Reduce margins on narrow screen
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalchevrel committed Oct 1, 2024
1 parent 4877b89 commit a76462f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/classes/ReleaseInsights/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function render(): void
public static function load(string $url, int $ttl = 0): array
{
if (! $data = Cache::getKey($url, $ttl)) {
error_log($url);
$data = Utils::getFile($url);

// Error fetching external data, don't cache. Safety net
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="alternate" type="application/rss+xml" title="Feed to get alerted of Firefox releases" href="/rss/">
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap-icons.css" media="screen">
<link rel="stylesheet" href="/style/base.css?version=38" type="text/css" media="all">
<link rel="stylesheet" href="/style/base.css?version=39" type="text/css" media="all">
{% if branch != '' %}
<link rel="icon" type="image/svg+xml" href="/assets/img/site_icon_dev.svg">
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/beta.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% endif %}
</li>
<li class="list-group-item text-light bg-secondary border-0">
<a href="{{ values['hg_link'] }}" class="text-light">Changelog</a>
<a href="{{ values['hg_link'] }}" class="text-light">Change<wbr>log</a>
</li>
<li class="list-group-item text-light bg-success border-0 flex-fill w-25">
{% if bug_list[key]|length == 1 %}
Expand Down
6 changes: 4 additions & 2 deletions public/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ h1, h2, h3 {
}

@media only screen and (max-width: 460px) {
.w-50 {
width: 100% !important;
/* deactivate bootstrap 50% & 75% width on narrow screens */
.w-50,
.w-75 {
width: auto !important;
}

#homepage h1 {
Expand Down

0 comments on commit a76462f

Please sign in to comment.