mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-18 09:47:13 +08:00
Merge pull request #6728 from artoscinote/ma_SCI_9189
Table and sticky toolbar fix [SCI-9189]
This commit is contained in:
commit
fe34412f62
2 changed files with 5 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
||||||
<div class="portocol-header-left-part grow">
|
<div class="portocol-header-left-part grow">
|
||||||
<template v-if="headerSticked && moduleName">
|
<template v-if="headerSticked && moduleName">
|
||||||
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
|
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
|
||||||
<div @click="scrollTop" class="task-section-title w-[calc(100%_-_4rem)] min-w-[5rem] cursor-pointer">
|
<div @click="scrollTop" class="task-section-title w-[calc(100%_-_35rem)] min-w-[5rem] cursor-pointer">
|
||||||
<h2 class="truncate leading-6">{{ moduleName }}</h2>
|
<h2 class="truncate leading-6">{{ moduleName }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions-block">
|
<div class="actions-block">
|
||||||
<div class="protocol-buttons-group">
|
<div class="protocol-buttons-group shrink-0">
|
||||||
<a v-if="urls.add_step_url"
|
<a v-if="urls.add_step_url"
|
||||||
class="btn btn-secondary"
|
class="btn btn-secondary"
|
||||||
:title="i18n.t('protocols.steps.new_step_title')"
|
:title="i18n.t('protocols.steps.new_step_title')"
|
||||||
|
|
|
@ -162,10 +162,10 @@
|
||||||
this.openNameModal();
|
this.openNameModal();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { row = 0, col = 0 } = this.selectedCell || {};
|
|
||||||
|
|
||||||
|
const { row = 0, col = 0 } = this.selectedCell || {};
|
||||||
this.editingTable = true;
|
this.editingTable = true;
|
||||||
this.$nextTick(() => this.tableObject.selectCell(row, col));
|
this.$nextTick(() => this.tableObject.selectCell(row,col));
|
||||||
},
|
},
|
||||||
disableTableEdit() {
|
disableTableEdit() {
|
||||||
this.editingTable = false;
|
this.editingTable = false;
|
||||||
|
@ -270,13 +270,12 @@
|
||||||
readOnly: !this.editingTable,
|
readOnly: !this.editingTable,
|
||||||
afterUnlisten: () => {
|
afterUnlisten: () => {
|
||||||
this.updatingTableData = true;
|
this.updatingTableData = true;
|
||||||
setTimeout(this.updateTable, 100) // delay makes cancel button work
|
this.updateTable();
|
||||||
},
|
},
|
||||||
afterSelection: (r, c, r2, c2) => {
|
afterSelection: (r, c, r2, c2) => {
|
||||||
if (r === r2 && c === c2) {
|
if (r === r2 && c === c2) {
|
||||||
this.selectedCell = { row: r, col: c };
|
this.selectedCell = { row: r, col: c };
|
||||||
}
|
}
|
||||||
this.updateTable();
|
|
||||||
},
|
},
|
||||||
afterChange: () => {
|
afterChange: () => {
|
||||||
if (this.editingTable == false) return;
|
if (this.editingTable == false) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue