Skip to content

Commit

Permalink
Fix typo, add copy button on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Dec 29, 2023
1 parent a374ff2 commit e219319
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/views/application/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

<% partial.content do %>
Your file is automatically destroyed after being accessed a
predefined number of times. Even if nobody access it, your file is
predefined number of times. Even if nobody accesses it, your file is
deleted after a short expiration time 🔥
<% end %>
<% end %>
Expand Down
12 changes: 4 additions & 8 deletions app/views/components/_code.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
data-controller="clipboard"
class="
relative w-full text-sm sm:text-base inline-flex text-left items-center
space-x-4 bg-gray-800 text-white rounded-lg p-4 pl-6
bg-gray-800 text-white rounded-lg p-4 pl-6
"
>
<p
class="w-full whitespace-nowrap overflow-scroll"
data-clipboard-target="source"
>
<p class="w-full" data-clipboard-target="source">
<%= yield %>
</p>

<button
data-action="clipboard#copy"
class="
hidden sm:flex border border-gray-500 rounded-full text-gray-500
hover:text-white transition py-1 px-4 gap-1 flex-row items-center justify-center
self-start
flex border border-gray-500 rounded-full text-gray-500 hover:text-white
transition py-1 px-4 gap-1 flex-row items-center justify-center self-start
"
>
<svg
Expand Down
2 changes: 1 addition & 1 deletion app/views/uploads/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class="w-full rounded-md border-gray-200"
data-action="change->tabs#change"
>
<option select>CUrl</option>
<option select>cURl</option>
<option>HTTPie</option>
</select>
</div>
Expand Down

0 comments on commit e219319

Please sign in to comment.