Spaces:
Sleeping
Sleeping
Commit
·
7e9519d
1
Parent(s):
8c1ac15
Add CSS styles to limit cell width and improve table layout in topic detail view
Browse files
core/templates/topic/detail.html
CHANGED
@@ -2,6 +2,15 @@
|
|
2 |
{% block title %}{{ item.name }}{% endblock %}
|
3 |
{% block css %}
|
4 |
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/jquery.dataTables.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
{% endblock %}
|
6 |
{% block content %}
|
7 |
<h2>{{ item.name }}</h2>
|
|
|
2 |
{% block title %}{{ item.name }}{% endblock %}
|
3 |
{% block css %}
|
4 |
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/jquery.dataTables.min.css">
|
5 |
+
<style>
|
6 |
+
table#authors-table td {
|
7 |
+
white-space: nowrap;
|
8 |
+
overflow: hidden;
|
9 |
+
text-overflow: ellipsis;
|
10 |
+
max-width: 100px;
|
11 |
+
/* Set a maximum width for the cells */
|
12 |
+
}
|
13 |
+
</style>
|
14 |
{% endblock %}
|
15 |
{% block content %}
|
16 |
<h2>{{ item.name }}</h2>
|