Skip to content

Commit

Permalink
Cleanup with object covering
Browse files Browse the repository at this point in the history
  • Loading branch information
Civolilah committed Feb 12, 2025
1 parent 9d2515b commit 9b40954
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/components/CompanySwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import { Exit } from './icons/Exit';
import { useCurrentUser } from '$app/common/hooks/useCurrentUser';
import { useInjectUserChanges } from '$app/common/hooks/useInjectUserChanges';
import { useColorScheme } from '$app/common/colors';
import classNames from 'classnames';

const SwitcherDiv = styled.div`
&:hover {
Expand Down Expand Up @@ -120,12 +119,7 @@ export function CompanySwitcher() {
return (
<>
<img
className={classNames(
'rounded-full border overflow-hidden aspect-square',
{
'object-cover': logo?.includes('invoiceninja-logo@light'),
}
)}
className="rounded-full border overflow-hidden aspect-square object-cover"
src={logo}
alt="Company logo"
style={{
Expand All @@ -152,12 +146,7 @@ export function CompanySwitcher() {
<Menu.Button className="flex items-center justify-start space-x-3 w-full">
<div className="flex items-center space-x-3 p-1.5 rounded-md hover:bg-gray-700">
<img
className={classNames(
'rounded-full border overflow-hidden aspect-square',
{
'object-cover': logo?.includes('invoiceninja-logo@light'),
}
)}
className="rounded-full border overflow-hidden aspect-square object-cover"
src={logo}
alt="Company logo"
style={{
Expand Down Expand Up @@ -230,7 +219,7 @@ export function CompanySwitcher() {
<div className="flex items-center space-x-2 flex-1">
{record.company.settings.company_logo ? (
<img
className="rounded-full border overflow-hidden aspect-square"
className="rounded-full border overflow-hidden aspect-square object-cover"
src={record.company.settings.company_logo}
alt="Company logo"
style={{
Expand Down

0 comments on commit 9b40954

Please sign in to comment.