# Пользовательские промпты слишком легко закрываются на мобильных устройствах

**URL:** https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322
**Category:** UX
**Tags:** mobile, completed, ai, ai-helper
**Created:** [17.Июнь.2024 05:44:56 UTC](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322 "2024-06-17T05:44:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [17.Июнь.2024 05:44:56 UTC](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322/1 "2024-06-17T05:44:56Z")

</div>

Привет 👋

На мобильных устройствах пользовательские подсказки ИИ кажутся слишком чувствительными к закрытию. Когда мы используем эту функцию и хотим настроить её для удобного чтения, касание за пределами _модального окна_ на экране мгновенно закрывает его. Было бы здорово, если бы окно закрывалось только кнопкой «Отмена». Или, возможно, на мобильных устройствах было бы гораздо удобнее использовать её так же, как карту тем или быстрые редакторы, которые выезжают в модальном окне.

Спасибо 🙂

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [10.Июль.2024 19:08:26 UTC](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322/3 "2024-07-10T19:08:26Z")

</div>

Спасибо, что подняли этот вопрос, @Don. Отличное предложение! Я обновил код так, чтобы помощник AI для постов отображался на мобильных устройствах в виде модального окна, выезжающего снизу.

> <https://github.com/discourse/discourse-ai/pull/704>
>
> \*\*This PR makes a few updates for the AI post helper menu.\*\*
> 
> To the end-user,… the most notable change is that the AI post helper menu is shown as a bottom modal when invoked on a \`mobileView\`. This should help resolve issues such as mentioned on \[Meta\](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322).
> 
> On the dev side, there has been some refactoring to help accommodate this:
> \- \`AIHelperOptionsMenu\` (now \`AiPostHelperTrigger\`) now solely responsible for showing \<kbd\>:sparkles: Ask AI\</kbd\> trigger button and text highlighting
> \- New component: \`AiPostHelperMenu\` will be responsible for showing AI helper options, loading state, and requests.
> \- The \`AiPostHelperMenu\` component acts as a regular Ember component on desktop and a \`DMenu\` component with \`modalForMobile: true\` on \`mobileView\`
> \- Moves AI helper options to a dedicated component (\`AiHelperOptionsList\`) for easy re-use in both post helper and composer helper.
> 
> \### Desktop View:
> 
> !\[Screenshot 2024-07-04 at 11 57 12\](https://github.com/discourse/discourse-ai/assets/30090424/8f5eea80-01c1-430a-81e2-0d3c6dc4d59e)
> 
> \### Mobile View:
> \<img src="https://github.com/discourse/discourse-ai/assets/30090424/34678729-92ea-4411-9276-57e0e28de981" width="300" /\>

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [11.Июль.2024 19:09:25 UTC](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322/5 "2024-07-11T19:09:25Z")

</div>

Эта тема была автоматически закрыта через 24 часа после последнего ответа. Новые ответы больше не принимаются.
