Skip to content

Commit 60391e7

Browse files
committed
feat: move toggle into menu for small screens
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
1 parent 32203d3 commit 60391e7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/components/ChattyLLM/ChattyLLMInputForm.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@
6161
</div>
6262
<div v-if="active != null" class="session-area__top-bar__actions">
6363
<NcActions v-model:open="titleActionsOpen">
64+
<NcActionButton v-model="active.is_remembered"
65+
type="checkbox"
66+
@update:modelValue="updateSession">
67+
<template #icon>
68+
<MemoryIcon :size="20" />
69+
</template>
70+
{{ t('assistant', 'Remember this') }}
71+
</NcActionButton>
6472
<NcActionButton :disabled="loading.titleGeneration || editingTitle" @click="onEditSessionTitleClick">
6573
<template #icon>
6674
<PencilOutlineIcon :size="20" />
@@ -172,6 +180,7 @@ import AutoFixIcon from 'vue-material-design-icons/AutoFix.vue'
172180
import PencilOutlineIcon from 'vue-material-design-icons/PencilOutline.vue'
173181
import PlusIcon from 'vue-material-design-icons/Plus.vue'
174182
import TrashCanOutlineIcon from 'vue-material-design-icons/TrashCanOutline.vue'
183+
import MemoryIcon from 'vue-material-design-icons/Memory.vue'
175184
176185
import AssistantIcon from '../icons/AssistantIcon.vue'
177186
@@ -217,6 +226,7 @@ export default {
217226
TrashCanOutlineIcon,
218227
PencilOutlineIcon,
219228
PlusIcon,
229+
MemoryIcon,
220230
221231
AssistantIcon,
222232
@@ -1008,6 +1018,9 @@ export default {
10081018
10091019
&__remember {
10101020
white-space: nowrap;
1021+
@media (max-width: 600px) {
1022+
display: none;
1023+
}
10111024
}
10121025
}
10131026

0 commit comments

Comments
 (0)