Skip to content

Commit

Permalink
Merge branch 'master' into menu-image-indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko authored Feb 14, 2025
2 parents 60d5c15 + 4302d4f commit a1f7cf3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Transformers/TeamTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class TeamTransformer extends TransformerAbstract
public function transform(Team $team): array
{
return [
'flag_url' => $team->logo()->url(),
'id' => $team->getKey(),
'logo' => $team->logo()->url(),
'name' => $team->name,
'short_name' => $team->short_name,
];
Expand Down
9 changes: 6 additions & 3 deletions resources/css/bem/menu-images.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
&__arrow {
.reset-input();
.fade-element(@hover-transition-duration);
--padding: 10px;
height: 100%;
padding: 10px;
padding: var(--padding) calc(var(--page-gutter) + var(--padding));
position: absolute;
top: 0;

Expand All @@ -33,12 +34,14 @@

&--left {
--icon: @fa-var-chevron-left;
left: var(--page-gutter);
left: 0;
padding-right: var(--padding);
}

&--right {
--icon: @fa-var-chevron-right;
right: var(--page-gutter);
right: 0;
padding-left: var(--padding);
}

&::before {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/flag-team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function FlagTeam({ team }: { team: TeamJson }) {
return (
<span
className='flag-team'
style={{ backgroundImage: urlPresence(team.logo) }}
style={{ backgroundImage: urlPresence(team.flag_url) }}
title={team.name}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/interfaces/team-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// See the LICENCE file in the repository root for full licence text.

export default interface TeamJson {
flag_url: string | null;
id: number;
logo: string | null;
name: string;
short_name: string;
}

0 comments on commit a1f7cf3

Please sign in to comment.