Skip to content

Commit

Permalink
fix popup responsive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yaghoubi committed Dec 23, 2024
1 parent c3f0471 commit c70a4ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_daisy/static/admin/css/base_tailwind.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions django_daisy/templates/admin/submit_line.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load i18n admin_urls %}
{% block submit-row %}
{% if is_popup %}
<div class="p-3 card bg-base-100 grid grid-cols-2 max-lg:hidden gap-3">
<div class="p-3 card bg-base-100 hidden grid-cols-2 md:grid gap-3">
{% if show_save %}
<button type="submit" class="btn-sm btn-primary px-4 btn rounded-md legitRipple" name="_save">
{% translate 'Save' %}
Expand All @@ -15,7 +15,7 @@
</button>
</div>
{% else %}
<div class="p-3 bg-base-100 justify-between flex flex-row-reverse gap-15 sticky top-3 max-md:hidden">
<div class="p-3 bg-base-100 justify-between flex flex-row-reverse gap-15 sticky top-3 max-md:hidden">
<div class="text-start flex gap-2">
{% if show_save_as_new %}
<input type="submit" value="{% translate 'Save as new' %}" name="_saveasnew">
Expand Down Expand Up @@ -60,7 +60,7 @@
</div>
{% endif %}

<div class="p-3 card bg-base-100 grid grid-cols-2 md:hidden gap-3 md:visible border !shadow-lg">
<div class="p-3 card bg-base-100 hidden grid-cols-2 max-md:grid gap-3 border !shadow-lg">
{% if is_popup %}
<button onclick="window.parent.close_modal()" type="button" class="btn-sm px-4 btn rounded-md legitRipple">
{% translate 'Close' %}
Expand Down

0 comments on commit c70a4ed

Please sign in to comment.