Skip to content

Commit

Permalink
CSS: Bulk Archives -> Fix responsive input
Browse files Browse the repository at this point in the history
  • Loading branch information
leobz committed Jun 26, 2023
1 parent e495e7c commit a59fdd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -970,3 +970,10 @@ body {
}




/***************************************** Bulk Archives **************************************/

@media screen and (max-width: 350px) {.responsive-form {width: auto;}}
@media screen and (min-width: 350px) {.responsive-form {width: 300px;}}
@media screen and (min-width: 550px) {.responsive-form {width: 500px;}}
4 changes: 2 additions & 2 deletions lib/bookmark_web/live/bulk_archives.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ defmodule BookmarkWeb.BulkArchivesLive do
<% end %>
</ul>
<% else %>
<.form for={@form} phx-submit="save">
<.form for={@form} phx-submit="save" class="responsive-form">
<textarea placeholder="Paste your URLs here, one per line:
https://www.example.com/
https://www.google.com/"
name="urls" style="height: 100px; width: 500px; background-color: white; font-size: 16px;"><%= if @links, do: @links%></textarea>
name="urls" style="height: 100px; width: 100%; background-color: white; font-size: 16px;"><%= if @links, do: @links%></textarea>
<button class="donate-button">Bulk archive</button>
</.form>
Expand Down

0 comments on commit a59fdd7

Please sign in to comment.