Skip to content

Commit

Permalink
mobile table styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Aug 12, 2024
1 parent cbf52bd commit b1ace01
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
14 changes: 14 additions & 0 deletions scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,18 @@ tr.selectable td {
margin-top: 1.5rem;
width: 200px;
}
}

// contents table
#contents_table > thead > tr > th > div {
display: flex;
flex-wrap: nowrap;
}
#contents > div.card-body div.row {
gap: 0.5rem 0;

> div {
flex: 1 0 auto;
flex-wrap: nowrap;
}
}
13 changes: 13 additions & 0 deletions src/cone/app/browser/static/cone/cone.app.css
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,16 @@ tr.selectable td {
margin-top: 1.5rem;
width: 200px;
}

#contents_table > thead > tr > th > div {
display: flex;
flex-wrap: nowrap;
}

#contents > div.card-body div.row {
gap: 0.5rem 0;
}
#contents > div.card-body div.row > div {
flex: 1 0 auto;
flex-wrap: 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.

2 changes: 1 addition & 1 deletion src/cone/app/browser/templates/contextmenu.pt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
tal:condition="toolbars">

<div class="container-fluid p-0">
<ul class="navbar-nav">
<ul class="navbar-nav flex-wrap">
<tal:toolbars repeat="toolbar toolbars">
<tal:toolbar replace="structure toolbar" />
</tal:toolbars>
Expand Down
4 changes: 2 additions & 2 deletions src/cone/app/browser/templates/table.pt
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@

</div>

<div class="card-body py-0">
<table class="table table-striped mb-1"
<div class="card-body py-0 scrollable-x scrollbar-top">
<table class="table table-striped mb-1 scrollable-content"
id="${context.table_id}_table">

<thead>
Expand Down

0 comments on commit b1ace01

Please sign in to comment.