File tree Expand file tree Collapse file tree 2 files changed +27
-8
lines changed
django_sql_dashboard/templates/django_sql_dashboard Expand file tree Collapse file tree 2 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 104
104
.save-dashboard-form .helptext {
105
105
color: #666;
106
106
white-space: nowrap;
107
- }
107
+ }
108
+ ul.dashboard-columns {
109
+ column-count: 2;
110
+ }
111
+ ul.dashboard-columns li {
112
+ break-inside: avoid;
113
+ margin-bottom: 0.3em;
114
+ }
115
+ ul.dashboard-columns li p {
116
+ margin: 0;
117
+ color: #666;
118
+ font-size: 0.8em;
119
+ }
120
+ @media (max-width: 800px) {
121
+ ul.dashboard-columns {
122
+ column-count: auto;
123
+ }
124
+ }
Original file line number Diff line number Diff line change @@ -81,27 +81,29 @@ <h2 id="save-dashboard">Save this dashboard</h2>
81
81
82
82
{% if saved_dashboards %}
83
83
< h2 > Saved dashboards</ h2 >
84
- < ul style =" column-count: 2 ">
84
+ < ul class =" dashboard-columns ">
85
85
{% for dashboard, can_edit in saved_dashboards %}
86
- < li style =" break-inside: avoid; " >
86
+ < li >
87
87
< a href ="{{ dashboard.get_absolute_url }} " title ="{{ dashboard.description }} "> {{ dashboard }}</ a >
88
- < br > < span style =" text-indent: 1em; color: #666; font-size: 0.8em " >
88
+ < p >
89
89
By < strong > {{ dashboard.owned_by }}</ strong > ,
90
90
Visibility: {{ dashboard.view_summary }}
91
91
{% if can_edit %}
92
92
- < a href ="{{ dashboard.get_edit_url }} "> edit</ a >
93
93
{% endif %}
94
- </ span >
94
+ </ p >
95
95
</ li >
96
96
{% endfor %}
97
97
</ ul >
98
98
{% endif %}
99
99
100
100
< h2 > Available tables</ h2 >
101
- < ul style =" column-count: 2 ">
101
+ < ul class =" dashboard-columns ">
102
102
{% for table in available_tables %}
103
- < li style ="break-inside: avoid; "> < a href ="?sql={% filter sign_sql|urlencode %}select count(*) from {{ table.name }}{% endfilter %}&sql={% filter sign_sql|urlencode %}select * from {{ table.name }}{% endfilter %} "> {{ table.name }}</ a >
104
- < br > < span style ="text-indent: 1em; color: #666; font-size: 0.8em "> {{ table.columns }}</ span > </ li >
103
+ < li >
104
+ < a href ="?sql={% filter sign_sql|urlencode %}select count(*) from {{ table.name }}{% endfilter %}&sql={% filter sign_sql|urlencode %}select * from {{ table.name }}{% endfilter %} "> {{ table.name }}</ a >
105
+ < p > {{ table.columns }}</ p >
106
+ </ li >
105
107
{% endfor %}
106
108
</ ul >
107
109
You can’t perform that action at this time.
0 commit comments