Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use whitespace-normal for table sizing #230

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_wtf/templates/core/social_media_news.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a class="font-bold" href="{{ url }}">{{ page_obj.start_index|add:forloop.counter0 }}</a>
</td>
<td>
<a href="{{ url }}" target="_blank">
<a href="{{ url }}" target="_blank" class="font-bold whitespace-normal">
{% if news.type == 'Reddit' %}
<i class="fa-brands fa-reddit text-2xl"></i>
{% elif news.type == 'Hacker News' %}
Expand Down
8 changes: 4 additions & 4 deletions django_wtf/templates/core/trending_repositories.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "core/base.html" %}
{% load humanize user_agents wtf_tags %}
{% block content %}
<div class="flex flex-col items-center self-center w-full p-4 lg:w-10/12 lg:p-6">
<div class="flex flex-col items-center self-center w-11/12 lg:w-7/12">
<div class="flex flex-wrap self-start mt-3 mb-10 text-sm gap-2 lg:text-lg">
<div class="badge badge-lg badge-primary">Trending repositories</div>
{% if request|is_mobile or request|is_tablet %}
Expand All @@ -23,7 +23,7 @@
{% endfor %}
</ul>
</details>
<table class="table w-full mb-5 leading-6">
<table class="table mb-5 leading-6">
<thead>
<tr>
<th class="hidden xl:block">Rank</th>
Expand All @@ -41,7 +41,7 @@
<tr class="hover">
{% with url=repo.github_url %}
<td class="hidden xl:table-cell">
<a class="font-bold" href="{{ url }}" target="_blank">{{ page_obj.start_index|add:forloop.counter0 }}</a>
<a class="font-bold whitespace-normal" href="{{ url }}" target="_blank">{{ page_obj.start_index|add:forloop.counter0 }}</a>
</td>
<td>
<a href="{{ url }}" target="_blank">
Expand All @@ -53,7 +53,7 @@
</a>
</td>
<td class="hidden xl:table-cell">
<a href="{{ url }}" target="_blank">{{ repo.truncated_description|truncatechars:50 }}</a>
<a href="{{ url }}" target="_blank" class="whitespace-normal">{{ repo.truncated_description|truncatechars:50 }}</a>
</td>
<td class="text-right">
<a href="{{ url }}" target="_blank">
Expand Down
Loading