Skip to content

Commit 23d1d45

Browse files
authored
Merge pull request #230 from danihodovic/fix-social-table-sizing
fix: Use whitespace-normal for table sizing
2 parents 3a7e9f1 + 41bc250 commit 23d1d45

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

django_wtf/templates/core/social_media_news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<a class="font-bold" href="{{ url }}">{{ page_obj.start_index|add:forloop.counter0 }}</a>
2323
</td>
2424
<td>
25-
<a href="{{ url }}" target="_blank">
25+
<a href="{{ url }}" target="_blank" class="font-bold whitespace-normal">
2626
{% if news.type == 'Reddit' %}
2727
<i class="fa-brands fa-reddit text-2xl"></i>
2828
{% elif news.type == 'Hacker News' %}

django_wtf/templates/core/trending_repositories.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "core/base.html" %}
22
{% load humanize user_agents wtf_tags %}
33
{% block content %}
4-
<div class="flex flex-col items-center self-center w-full p-4 lg:w-10/12 lg:p-6">
4+
<div class="flex flex-col items-center self-center w-11/12 lg:w-7/12">
55
<div class="flex flex-wrap self-start mt-3 mb-10 text-sm gap-2 lg:text-lg">
66
<div class="badge badge-lg badge-primary">Trending repositories</div>
77
{% if request|is_mobile or request|is_tablet %}
@@ -23,7 +23,7 @@
2323
{% endfor %}
2424
</ul>
2525
</details>
26-
<table class="table w-full mb-5 leading-6">
26+
<table class="table mb-5 leading-6">
2727
<thead>
2828
<tr>
2929
<th class="hidden xl:block">Rank</th>
@@ -41,7 +41,7 @@
4141
<tr class="hover">
4242
{% with url=repo.github_url %}
4343
<td class="hidden xl:table-cell">
44-
<a class="font-bold" href="{{ url }}" target="_blank">{{ page_obj.start_index|add:forloop.counter0 }}</a>
44+
<a class="font-bold whitespace-normal" href="{{ url }}" target="_blank">{{ page_obj.start_index|add:forloop.counter0 }}</a>
4545
</td>
4646
<td>
4747
<a href="{{ url }}" target="_blank">
@@ -53,7 +53,7 @@
5353
</a>
5454
</td>
5555
<td class="hidden xl:table-cell">
56-
<a href="{{ url }}" target="_blank">{{ repo.truncated_description|truncatechars:50 }}</a>
56+
<a href="{{ url }}" target="_blank" class="whitespace-normal">{{ repo.truncated_description|truncatechars:50 }}</a>
5757
</td>
5858
<td class="text-right">
5959
<a href="{{ url }}" target="_blank">

0 commit comments

Comments
 (0)