Skip to content

Commit e325a6b

Browse files
committed
fix: detail mobile view
1 parent e1fd932 commit e325a6b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

django_wtf/templates/core/repository_detail.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
{% endblock head %}
99

1010
{% block content %}
11-
<div class="flex-col content-center self-center w-full mb-5 lg:mt-5 lg:flex lg:w-7/12">
12-
<div class="flex mt-10 mb-10">
11+
<div class="flex-col content-center self-center mb-5 lg:mt-5 lg:flex w-11/12 lg:w-7/12">
12+
<div class="lg:flex mt-10 mb-10">
1313
<div>
1414
<a class="mt-6 text-4xl link link-hover" href="{{ object.github_url }}">{{ object.full_name }}</a>
1515
<p class="mt-3 text-xl">{{ object.description }}</p>
@@ -18,11 +18,11 @@
1818
</div>
1919
<div class="divider"></div>
2020
<div>
21-
<article class="prose">{{ object.readme_html | safe }}</article>
21+
<article class="prose max-w-none">{{ object.readme_html | safe }}</article>
2222
</div>
2323
</div>
2424
<div>
25-
<div class="ml-6 stats stats-vertical">
25+
<div class="lg:ml-6 stats stats-vertical">
2626
<div class="stat">
2727
<div class="stat-figure text-info">
2828
<svg xmlns="http://www.w3.org/2000/svg"

django_wtf/theme/static_src/tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ module.exports = {
5252
DEFAULT: {
5353
css: {
5454
img: {
55-
margin: "0",
55+
"margin-bottom": "0.2rem",
56+
"margin-top": "0.2rem",
5657
display: "unset",
5758
},
5859
},

0 commit comments

Comments
 (0)