Skip to content

Commit

Permalink
Fix API page on mobile. Fixes #1757
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 6, 2024
1 parent 54566d8 commit 869245a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/_tailwind/documentation/api_howto.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
</p>
</div>

<div class="flex justify-between gap-8 px-12 py-8 mt-12 bg-light-grey">
<div class="flex flex-col justify-between gap-8 px-12 py-8 mt-12 md:flex-row bg-light-grey">
<div class="text-2xl text-navy">
<% if current_user %>
<% if api_key %>
<p>
<p class>
The API examples below contain your API key:
<span class="font-bold"><%= api_key %></span>
<span class="font-bold break-all"><%= api_key %></span>
</p>
<% else %>
<p>
Expand All @@ -51,7 +51,7 @@
</p>
<% end %>
</div>
<%= image_tag "tailwind/illustration/key.svg", alt: "" %>
<%= image_tag "tailwind/illustration/key.svg", alt: "", size: "287x189" %>
</div>

<section class="mt-24">
Expand Down

0 comments on commit 869245a

Please sign in to comment.