Skip to content

Commit

Permalink
some more mobile table styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Aug 12, 2024
1 parent b1ace01 commit 6001e8e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
7 changes: 7 additions & 0 deletions scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,11 @@ tr.selectable td {
flex: 1 0 auto;
flex-wrap: nowrap;
}
}
.table-footer {
gap: 1rem 0;

.table_info {
white-space: nowrap;
}
}
7 changes: 7 additions & 0 deletions src/cone/app/browser/static/cone/cone.app.css
Original file line number Diff line number Diff line change
Expand Up @@ -392,3 +392,10 @@ tr.selectable td {
flex: 1 0 auto;
flex-wrap: nowrap;
}

.table-footer {
gap: 1rem 0;
}
.table-footer .table_info {
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion src/cone/app/browser/static/cone/cone.app.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/cone/app/browser/templates/table.pt
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@
</table>
</div>

<div class="card-body pb-1"
<div class="card-body pb-1 d-flex justify-content-between flex-wrap table-footer"
tal:condition="context.display_table_footer">

<div class="table_info float-start"
<div class="table_info"
tal:define="slice context.slice.slice">
<span i18n:translate="showing">Showing</span>
<span tal:content="slice[0] + 1"
Expand All @@ -194,7 +194,7 @@
<span i18n:translate="entries">entries</span>
</div>

<div class="float-end">
<div class="pagination">
<tal:batch replace="structure context.batch" />
</div>

Expand Down

0 comments on commit 6001e8e

Please sign in to comment.