Skip to content

Commit 17fef50

Browse files
elsiosanchezelsiosanchez
andauthored
fix style list Chat Entries in mode mobile (#825)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
1 parent 0d98ea5 commit 17fef50

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/components/ADempiere/ChatEntries/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
>
2929
{{ $t('window.containerInfo.notes') }}
3030
</span>
31-
<el-scrollbar wrap-class="scroll-window-log-chat">
31+
<el-scrollbar wrap-class="scroll-child" style="height: 100%;">
3232
<el-timeline>
3333
<el-timeline-item
3434
v-for="(chats, key) in chatList"
@@ -178,4 +178,8 @@ export default {
178178
padding: 10px 20px !important;
179179
}
180180
}
181+
.el-card__body {
182+
padding: 20px;
183+
height: 100%;
184+
}
181185
</style>

src/views/ADempiere/Window/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
class="tab-window"
106106
/>
107107
<div v-if="isMobile">
108-
<el-card class="box-card">
108+
<el-card class="box-card" style="height: 90vh">
109109
<el-tabs v-model="activeInfo" @tab-click="handleClick">
110110
<el-tab-pane
111111
name="listChatEntries"

src/views/ADempiere/Window/windowLogicComponent.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ export default {
368368
if (!this.isEmptyValue(this.windowMetadata.currentTab.tableName) && !this.isEmptyValue(value) && (!this.isEmptyValue(this.$route.query) && this.$route.query.typeAction === 'recordAccess')) {
369369
this.$store.commit('setRecordAccess', true)
370370
}
371+
if (!this.isEmptyValue(this.windowMetadata.currentTab.tableName) && !this.isEmptyValue(value) && this.isMobile) {
372+
this.$store.dispatch(this.activeInfo, {
373+
tableName: this.getTableName,
374+
recordId: this.recordId,
375+
recordUuid: value.UUID
376+
})
377+
}
371378
}
372379
},
373380
created() {

0 commit comments

Comments
 (0)