fix: clarify project registration controls
This commit is contained in:
+14
-7
@@ -1097,7 +1097,7 @@ class _ChatPageState extends State<ChatPage> {
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
tooltip: 'تسجيل مشروع جديد',
|
||||
tooltip: 'إضافة مشروع موجود إلى القائمة',
|
||||
visualDensity: VisualDensity.compact,
|
||||
onPressed: chat.isSending ? null : _addWorkspaceProject,
|
||||
icon: const Icon(Icons.create_new_folder_outlined, size: 19),
|
||||
@@ -1108,7 +1108,7 @@ class _ChatPageState extends State<ChatPage> {
|
||||
TextButton.icon(
|
||||
onPressed: chat.isSending ? null : _addWorkspaceProject,
|
||||
icon: const Icon(Icons.add, size: 16),
|
||||
label: const Text('تسجيل مشروع جديد'),
|
||||
label: const Text('إضافة مجلد مشروع موجود'),
|
||||
style: TextButton.styleFrom(
|
||||
alignment: Alignment.centerRight,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
|
||||
@@ -1407,11 +1407,18 @@ class _ChatPageState extends State<ChatPage> {
|
||||
),
|
||||
),
|
||||
SizedBox(width: compact ? 2 : 12),
|
||||
IconButton.filledTonal(
|
||||
onPressed: chat.isSending ? null : _addWorkspaceProject,
|
||||
tooltip: 'تسجيل مشروع من مجلد موجود',
|
||||
icon: const Icon(Icons.create_new_folder_outlined),
|
||||
),
|
||||
if (constraints.maxWidth >= 900)
|
||||
FilledButton.tonalIcon(
|
||||
onPressed: chat.isSending ? null : _addWorkspaceProject,
|
||||
icon: const Icon(Icons.create_new_folder_outlined),
|
||||
label: const Text('إضافة مجلد مشروع'),
|
||||
)
|
||||
else
|
||||
IconButton.filledTonal(
|
||||
onPressed: chat.isSending ? null : _addWorkspaceProject,
|
||||
tooltip: 'إضافة مجلد مشروع موجود',
|
||||
icon: const Icon(Icons.create_new_folder_outlined),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: _chooseWorkspace,
|
||||
tooltip:
|
||||
|
||||
Reference in New Issue
Block a user