Skip to content

Commit

Permalink
Move css for hiding columns to the ResourceTable component
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Mar 28, 2022
1 parent 2c74391 commit 8a9591c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 58 deletions.
58 changes: 0 additions & 58 deletions packages/web-app-files/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,61 +144,3 @@ main {
grid-area: upload;
}
</style>
<style lang="scss">
// Hide files table columns
.files-table {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;
@media only screen and (min-width: 640px) {
display: table-cell;
}
}
.oc-table-header-cell-owner,
.oc-table-data-cell-owner {
display: none;
@media only screen and (min-width: 960px) {
display: table-cell;
}
}
&-squashed {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;
@media only screen and (min-width: 1600px) {
display: table-cell;
}
}
}
}
</style>
56 changes: 56 additions & 0 deletions packages/web-app-files/src/components/FilesList/ResourceTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -724,4 +724,60 @@ export default {
justify-content: center;
}
}
// Hide files table columns
.files-table {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;
@media only screen and (min-width: 640px) {
display: table-cell;
}
}
.oc-table-header-cell-owner,
.oc-table-data-cell-owner {
display: none;
@media only screen and (min-width: 960px) {
display: table-cell;
}
}
&-squashed {
.oc-table-header-cell-mdate,
.oc-table-data-cell-mdate,
.oc-table-header-cell-sdate,
.oc-table-data-cell-sdate,
.oc-table-header-cell-ddate,
.oc-table-data-cell-ddate,
.oc-table-header-cell-size,
.oc-table-data-cell-size,
.oc-table-header-cell-sharedWith,
.oc-table-data-cell-sharedWith,
.oc-table-header-cell-owner,
.oc-table-data-cell-owner,
.oc-table-header-cell-status,
.oc-table-data-cell-status {
display: none;
@media only screen and (min-width: 1600px) {
display: table-cell;
}
}
}
}
</style>

0 comments on commit 8a9591c

Please sign in to comment.