Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile committed Dec 19, 2024
1 parent b4699bb commit 37f2913
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/debug/LayeredBrowserIcons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const results = computed(() => {
if (props.browsers) {
return props.browsers.map((browserType) => {
return {
icon: browserType ? allBrowsersIcons[browserType.toLowerCase()] : allBrowsersIcons.generic,
icon: allBrowsersIcons[browserType?.toLowerCase()] || allBrowsersIcons.generic,
name: `browser-icon-${browserType.toLowerCase().replaceAll(' ', '_')}`,
}
})
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/runner/SpecRunnerHeaderOpenMode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
>
<template #heading>
<component
:is="selectedBrowser.displayName ? allBrowsersIcons[selectedBrowser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[selectedBrowser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
class="min-w-[16px] w-[16px]"
:alt="selectedBrowser.displayName"
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/runner/SpecRunnerHeaderRunMode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
>
<template #heading>
<component
:is="selectedBrowser.displayName ? allBrowsersIcons[selectedBrowser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[selectedBrowser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
v-if="selectedBrowser.displayName"
class="min-w-[16px] w-[16px]"
alt=""
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/runner/automation/AutomationMissing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
>
<template #heading>
<component
:is="selectedBrowser.displayName ? allBrowsersIcons[selectedBrowser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[selectedBrowser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
class="min-w-[16px] w-[16px]"
/>
{{ selectedBrowser.displayName }} {{ selectedBrowser.majorVersion }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
>
<template #heading="{ open }">
<component
:is="props.gql.currentProject.activeBrowser.displayName ? allBrowsersIcons[props.gql.currentProject.activeBrowser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[props.gql.currentProject.activeBrowser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
v-if="props.gql?.currentProject?.activeBrowser?.displayName"
class="w-[16px] filter group-hocus:grayscale-0"
data-cy="top-nav-active-browser-icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@click="handleBrowserChoice(browser)"
>
<component
:is="browser.displayName ? allBrowsersIcons[browser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[browser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
class="mr-[16px] min-w-[26px] w-[26px] min-h-[45px]"
:class="{ 'filter grayscale': browser.disabled || !browser.isVersionSupported }"
alt=""
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/src/setup/OpenBrowserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</Tooltip>
<div class="text-center">
<component
:is="browser.displayName ? allBrowsersIcons[browser.displayName.toLowerCase()] : allBrowsersIcons.generic"
:is="allBrowsersIcons[browser.displayName?.toLowerCase()] || allBrowsersIcons.generic"
alt=""
class="h-[40px] w-[40px] inline"
:class="{ 'filter grayscale': browser.disabled || !browser.isVersionSupported }"
Expand Down

0 comments on commit 37f2913

Please sign in to comment.