forked from enviPath/enviPy
fixed width for news
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 6.0.3 on 2026-11-09 21:43
|
||||||
|
|
||||||
|
import django.utils.timezone
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('bayer', '0006_remove_newsentry_url'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='newsentry',
|
||||||
|
name='publication_date',
|
||||||
|
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Date'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
|
|
||||||
<div id="services-container" class="flex justify-center gap-4">
|
<div id="services-container" class="flex justify-center gap-4">
|
||||||
{% for ne in news_entries %}
|
{% for ne in news_entries %}
|
||||||
<div class="card-body flex flex-col h-full justify-between p-5">
|
<div class="card-body flex flex-col h-full justify-between p-5 w-96"> <!-- Fixed width applied via w-96 -->
|
||||||
<div>
|
<div>
|
||||||
<div class="flex items-center gap-2 mb-2">
|
<div class="flex items-center gap-2 mb-2">
|
||||||
<div class="bg-primary/10 text-primary rounded-lg p-1.5">
|
<div class="bg-primary/10 text-primary rounded-lg p-1.5">
|
||||||
@@ -283,10 +283,20 @@
|
|||||||
{{ ne.content }}
|
{{ ne.content }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ ne.url }}" class="btn btn-primary btn-sm w-full group-hover:btn-active mt-1">
|
||||||
|
Read Full
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
|
||||||
|
<polyline points="15 3 21 3 21 9"></polyline>
|
||||||
|
<line x1="10" y1="14" x2="21" y2="3"></line>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="mt-6 text-right">
|
<div class="mt-6 text-right">
|
||||||
<a
|
<a
|
||||||
href="https://community.envipath.org/c/announcements/10"
|
href="https://community.envipath.org/c/announcements/10"
|
||||||
|
|||||||
Reference in New Issue
Block a user