Skip to content

Commit

Permalink
User submissions table responsiveness
Browse files Browse the repository at this point in the history
Table now shrinks columns away with estimate first, then status

Related to Issue #39
  • Loading branch information
BobChao87 committed Nov 4, 2021
1 parent 92d0413 commit 8f1c8e4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion components/user/history/Submission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,21 @@ export default Vue.extend({
</script>

<style lang="scss" scoped>
@use '~assets/table';
.submission-table {
grid-template-columns: repeat(5, auto);
@include table.shrink(5, (
768px '.estimate' 4,
600px '.status' 3,
));
}
@media (max-width: 500px) {
// At really small sizes, long names can become problematic
// this allows them to take scrollbars instead. We don't do this at every
// size, since doing this forces scrolls when they aren't needed
::v-deep .element-table-cell {
overflow-x: auto;
}
}
</style>

0 comments on commit 8f1c8e4

Please sign in to comment.