User already exists message is red. Modals to the viewport center. Fixed Quit option: it deletes the session.

This commit is contained in:
AG
2025-12-01 07:23:47 +02:00
parent 0290bbabd7
commit ead48fb249
9 changed files with 70 additions and 20 deletions

View File

@@ -265,7 +265,7 @@ const Plans: React.FC<PlansProps> = ({ userId, onStartPlan, lang }) => {
</div>
{showExerciseSelector && (
<div className="absolute inset-0 bg-surface z-50 flex flex-col animate-in slide-in-from-bottom-full duration-200">
<div className="fixed inset-0 bg-surface z-50 flex flex-col animate-in slide-in-from-bottom-full duration-200">
<div className="px-4 py-3 border-b border-outline-variant flex justify-between items-center bg-surface-container">
<span className="font-medium text-on-surface">{t('select_exercise', lang)}</span>
<div className="flex gap-2">
@@ -292,7 +292,7 @@ const Plans: React.FC<PlansProps> = ({ userId, onStartPlan, lang }) => {
</div>
{isCreatingExercise && (
<div className="absolute inset-0 bg-surface z-[60] flex flex-col animate-in slide-in-from-bottom-full duration-200">
<div className="fixed inset-0 bg-surface z-[60] flex flex-col animate-in slide-in-from-bottom-full duration-200">
<div className="px-4 py-3 border-b border-outline-variant flex justify-between items-center bg-surface-container">
<h3 className="text-title-medium font-medium text-on-surface">{t('create_exercise', lang)}</h3>
<button onClick={() => setIsCreatingExercise(false)} className="p-2 text-on-surface-variant hover:bg-white/5 rounded-full"><X /></button>