diff --git a/src-tauri/src/browser_runner.rs b/src-tauri/src/browser_runner.rs index afb5190..6fe8eae 100644 --- a/src-tauri/src/browser_runner.rs +++ b/src-tauri/src/browser_runner.rs @@ -1962,24 +1962,24 @@ pub async fn launch_browser_profile( #[tauri::command] pub async fn update_profile_proxy( app_handle: tauri::AppHandle, - profile_id: String, + profile_name: String, proxy_id: Option, ) -> Result { let profile_manager = ProfileManager::instance(); profile_manager - .update_profile_proxy(app_handle, &profile_id, proxy_id) + .update_profile_proxy(app_handle, &profile_name, proxy_id) .await .map_err(|e| format!("Failed to update profile: {e}")) } #[tauri::command] pub fn update_profile_tags( - profile_id: String, + profile_name: String, tags: Vec, ) -> Result { let profile_manager = ProfileManager::instance(); profile_manager - .update_profile_tags(&profile_id, tags) + .update_profile_tags(&profile_name, tags) .map_err(|e| format!("Failed to update profile tags: {e}")) } diff --git a/src/components/profile-data-table.tsx b/src/components/profile-data-table.tsx index a6c4132..c1672e9 100644 --- a/src/components/profile-data-table.tsx +++ b/src/components/profile-data-table.tsx @@ -1264,8 +1264,8 @@ export function ProfilesDataTable({ profile.browser === "tor-browser" ? "Proxies are not supported for TOR browser" : profileHasProxy && effectiveProxy - ? `${effectiveProxy.name} (${effectiveProxy.proxy_settings.proxy_type.toUpperCase()})` - : ""; + ? effectiveProxy.name + : null; const isSelectorOpen = meta.openProxySelectorFor === profile.name; if (profile.browser === "tor-browser") { @@ -1278,7 +1278,9 @@ export function ProfilesDataTable({ - {tooltipText && {tooltipText}} + {(tooltipText || displayName.length > 10) && ( + {tooltipText || displayName} + )} ); } @@ -1301,18 +1303,14 @@ export function ProfilesDataTable({ : "cursor-pointer hover:bg-accent/50", )} > - {profileHasProxy && ( - - )} - {displayName.length > 18 ? ( - - {displayName.slice(0, 18)}... - - ) : ( - - {displayName} - - )} + + {trimName(displayName, 10)} +