feat(chat): custom branded modal for topic renaming (replaces browser prompt)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<div id="rename-topic-modal" class="fixed inset-0 bg-slate-900/60 backdrop-blur-xs z-50 flex items-center justify-center p-4 hidden">
|
||||
<div class="bg-white rounded-2xl shadow-2xl border border-slate-200 max-w-sm w-full p-5 flex flex-col gap-3">
|
||||
<div class="flex items-center justify-between">
|
||||
<h3 class="text-xs font-bold text-slate-800 flex items-center gap-2">
|
||||
<i class="fa-solid fa-pencil text-indigo-600"></i>
|
||||
<span>Переименование темы</span>
|
||||
</h3>
|
||||
<button type="button" onclick="window.TopicsManager.closeRenameModal()" class="text-slate-400 hover:text-slate-600 transition">
|
||||
<i class="fa-solid fa-xmark text-sm"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<form id="rename-topic-form" onsubmit="window.TopicsManager.submitRenameModal(event)" class="flex flex-col gap-3">
|
||||
<input type="hidden" id="rename-topic-session-id" value="" />
|
||||
<div>
|
||||
<label class="block text-[11px] font-semibold text-slate-600 mb-1">Название диалога:</label>
|
||||
<input type="text" id="rename-topic-input" required autocomplete="off"
|
||||
class="w-full text-xs px-3 py-2 border border-slate-300 rounded-lg focus:outline-none focus:border-indigo-500 bg-slate-50 text-slate-800" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end gap-2 pt-2 border-t border-slate-100">
|
||||
<button type="button" onclick="window.TopicsManager.closeRenameModal()"
|
||||
class="px-3 py-1.5 text-xs text-slate-600 hover:bg-slate-100 rounded-lg transition font-medium">
|
||||
Отмена
|
||||
</button>
|
||||
<button type="submit"
|
||||
class="px-3.5 py-1.5 bg-indigo-600 hover:bg-indigo-700 active:bg-indigo-800 text-white rounded-lg text-xs font-bold transition shadow-xs">
|
||||
Сохранить
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user