Skip to content

Commit

Permalink
Console: make layout fixed with variablescrollable parts
Browse files Browse the repository at this point in the history
Console: add column resizer
  • Loading branch information
unnamed777 committed Feb 16, 2025
1 parent 352a0e1 commit 1b40758
Show file tree
Hide file tree
Showing 6 changed files with 268 additions and 116 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bx24dev",
"version": "0.4.3",
"version": "0.4.4",
"description": "Bitrix24 Dev extension",
"author": "Andrey Neyman <[email protected]>",
"engines": {
Expand Down
15 changes: 14 additions & 1 deletion src/app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
</svg>
</a>
</div>
<div class="col-10 pt-3">
<div
class="col-10 pt-3"
:class="contentClass ? [contentClass] : null"
>
<div class="d-flex">
<nav aria-label="breadcrumb" v-if="breadcrumb.length > 0">
<ol class="breadcrumb">
Expand Down Expand Up @@ -68,6 +71,7 @@ export default {
computed: mapState({
breadcrumb: state => state.breadcrumb,
contentClass: state => state.contentClass,
}),
async mounted() {
Expand Down Expand Up @@ -280,4 +284,13 @@ body .json-formatter-row {
top: var(--top);
left: var(--left);
}
.page-content {
&--fixed-height {
height: 100vh;
display: flex;
overflow: auto;
flex-flow: column nowrap;
}
}
</style>
4 changes: 3 additions & 1 deletion src/app/components/modules/Console/Console.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="flex-grow-1 flex-shrink-1" style="overflow: auto;">
<Instance
v-for="instance of instances"
:key="instance.id"
Expand Down Expand Up @@ -94,6 +94,7 @@ export default {
mounted() {
this.setBreadcrumb(['Консоль']);
this.setContentClass('page-content--fixed-height');
this.add();
this.initHotkey();
},
Expand Down Expand Up @@ -241,6 +242,7 @@ export default {
...mapMutations({
setBreadcrumb: 'setBreadcrumb',
setContentClass: 'setContentClass',
}),
}
};
Expand Down
Loading

0 comments on commit 1b40758

Please sign in to comment.