From f07edadec7c7c93bc2177333ee6d56ca7030cd2b Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Tue, 25 Jun 2024 10:48:28 +0300 Subject: [PATCH] style: use Teleport for proper page hierarchy: - Introduced the `attach` attribute to the `v-dialog` component for better dialog positioning. - Created a new HTML element with the id `modals` to serve as the teleport target for dialogs. - Updated Vuetify defaults to include the `attach` attribute, ensuring consistent dialog behavior across the application. --- packages/playground/index.html | 1 + packages/playground/src/components/TfOfflineNotifier.vue | 2 +- packages/playground/src/components/app_info.vue | 1 + .../src/components/contracts_list/contracts_table.vue | 6 +++--- .../playground/src/components/deployment_data_dialog.vue | 2 +- packages/playground/src/components/deposit_dialog.vue | 7 ++++++- .../playground/src/components/k8s_deployment_table.vue | 2 +- packages/playground/src/components/logger.vue | 2 +- .../src/components/manage_caprover_worker_dialog.vue | 2 +- .../playground/src/components/manage_gateway_dialog.vue | 5 +++-- .../playground/src/components/manage_worker_dialog.vue | 3 ++- packages/playground/src/components/node_details.vue | 1 + .../playground/src/components/ssh_keys/SshDataDialog.vue | 1 + .../playground/src/components/ssh_keys/SshFormDialog.vue | 1 + .../playground/src/components/vm_deployment_table.vue | 8 +++++++- packages/playground/src/components/withdraw_dialog.vue | 1 + packages/playground/src/dashboard/components/add_ip.vue | 4 ++-- .../playground/src/dashboard/components/create_farm.vue | 2 +- .../playground/src/dashboard/components/public_config.vue | 4 ++-- .../src/dashboard/components/public_ips_table.vue | 2 +- .../src/dashboard/components/reserve_action_btn.vue | 2 +- .../playground/src/dashboard/components/set_extra_fee.vue | 2 +- .../playground/src/dashboard/components/user_farms.vue | 2 +- packages/playground/src/dashboard/dao_view.vue | 4 ++-- packages/playground/src/dashboard/twin_view.vue | 4 ++-- packages/playground/src/plugins/vuetify.ts | 1 + packages/playground/src/weblets/profile_manager.vue | 3 ++- packages/playground/src/weblets/tf_contracts_list.vue | 2 +- packages/playground/src/weblets/tf_deployment_list.vue | 2 +- 29 files changed, 50 insertions(+), 29 deletions(-) diff --git a/packages/playground/index.html b/packages/playground/index.html index e07e59fd7e..72f6262517 100644 --- a/packages/playground/index.html +++ b/packages/playground/index.html @@ -46,6 +46,7 @@
+
diff --git a/packages/playground/src/components/TfOfflineNotifier.vue b/packages/playground/src/components/TfOfflineNotifier.vue index 55bacdef9e..0eac11a857 100644 --- a/packages/playground/src/components/TfOfflineNotifier.vue +++ b/packages/playground/src/components/TfOfflineNotifier.vue @@ -1,5 +1,5 @@ - +

Contract lock Details

@@ -197,7 +197,7 @@
- + Delete the following contracts? - + Unlock the following Contracts diff --git a/packages/playground/src/components/deployment_data_dialog.vue b/packages/playground/src/components/deployment_data_dialog.vue index a985911185..eb57f3f936 100644 --- a/packages/playground/src/components/deployment_data_dialog.vue +++ b/packages/playground/src/components/deployment_data_dialog.vue @@ -1,6 +1,6 @@ - + Add your worker diff --git a/packages/playground/src/components/manage_gateway_dialog.vue b/packages/playground/src/components/manage_gateway_dialog.vue index 7ba2149584..3b619ec022 100644 --- a/packages/playground/src/components/manage_gateway_dialog.vue +++ b/packages/playground/src/components/manage_gateway_dialog.vue @@ -5,6 +5,7 @@ @update:model-value="$emit('close')" scrollable :persistent="deleting || layout?.status === 'deploy'" + attach="#modals" > - + Failed Domains @@ -183,7 +184,7 @@ - + Are you sure you want to delete the following gateways? diff --git a/packages/playground/src/components/manage_worker_dialog.vue b/packages/playground/src/components/manage_worker_dialog.vue index 9ac22b1128..05ed742dd2 100644 --- a/packages/playground/src/components/manage_worker_dialog.vue +++ b/packages/playground/src/components/manage_worker_dialog.vue @@ -4,6 +4,7 @@ scrollable :persistent="layout?.status === 'deploy' || deleting" @update:model-value="$emit('close')" + attach="#modals" > @@ -47,7 +48,7 @@ - + Are you sure you want to delete the following workers? diff --git a/packages/playground/src/components/node_details.vue b/packages/playground/src/components/node_details.vue index fea79b3238..a3e6cb8c49 100644 --- a/packages/playground/src/components/node_details.vue +++ b/packages/playground/src/components/node_details.vue @@ -5,6 +5,7 @@ @click:outside="() => $emit('close-dialog', false)" transition="dialog-bottom-transition" hide-overlay + attach="#modals" >
diff --git a/packages/playground/src/components/ssh_keys/SshDataDialog.vue b/packages/playground/src/components/ssh_keys/SshDataDialog.vue index d2eb747e29..7c30593034 100644 --- a/packages/playground/src/components/ssh_keys/SshDataDialog.vue +++ b/packages/playground/src/components/ssh_keys/SshDataDialog.vue @@ -4,6 +4,7 @@ @keydown.esc="() => $emit('close')" v-model="$props.open" max-width="800" + attach="#modals" >