diff --git a/resources/css/bem/flag-team.less b/resources/css/bem/flag-team.less index ac8ad25ace0..74df9529ad8 100644 --- a/resources/css/bem/flag-team.less +++ b/resources/css/bem/flag-team.less @@ -5,6 +5,16 @@ height: 1em; width: 2em; display: inline-block; + background-color: #333; background-size: contain; + background-repeat: no-repeat; + background-position: center; border-radius: min(0.25em, @border-radius-large); + + &--full { + width: 100%; + height: 100%; + box-shadow: none; + border-radius: 0; + } } diff --git a/resources/css/bem/profile-info.less b/resources/css/bem/profile-info.less index 802b81ba63c..1e1af4a4c9a 100644 --- a/resources/css/bem/profile-info.less +++ b/resources/css/bem/profile-info.less @@ -2,7 +2,6 @@ // See the LICENCE file in the repository root for full licence text. .profile-info { - --avatar: none; --avatar-radius-extended-desktop: 40px; --avatar-radius-extended: 20px; --avatar-radius: 20px; @@ -40,7 +39,6 @@ &--team { --avatar-width: calc(var(--avatar-height) * 2); - --avatar: url("~@images/headers/generic.jpg"); --bg: url("~@images/headers/generic.jpg"); background-color: hsl(var(--hsl-b4)); } @@ -60,8 +58,6 @@ overflow: hidden; align-self: flex-end; margin-bottom: var(--vertical-padding); - background-image: var(--avatar); - background-size: contain; .default-box-shadow(); } diff --git a/resources/js/components/flag-team.tsx b/resources/js/components/flag-team.tsx index 57f3ff244c8..e4601680c22 100644 --- a/resources/js/components/flag-team.tsx +++ b/resources/js/components/flag-team.tsx @@ -3,12 +3,13 @@ import TeamJson from 'interfaces/team-json'; import * as React from 'react'; +import { urlPresence } from 'utils/css'; export default function FlagTeam({ team }: { team: TeamJson }) { return ( ); diff --git a/resources/views/objects/_flag_team.blade.php b/resources/views/objects/_flag_team.blade.php index af7db4ed063..a445edd9fb5 100644 --- a/resources/views/objects/_flag_team.blade.php +++ b/resources/views/objects/_flag_team.blade.php @@ -3,7 +3,7 @@ See the LICENCE file in the repository root for full licence text. --}} logo()->url(), false) !!} > diff --git a/resources/views/teams/show.blade.php b/resources/views/teams/show.blade.php index 20b2a54a879..ac8638e0a3a 100644 --- a/resources/views/teams/show.blade.php +++ b/resources/views/teams/show.blade.php @@ -45,10 +45,9 @@ class="btn-circle btn-circle--page-toggle" @endif
-
logo()->url()) !!} - >
+
+ @include('objects._flag_team', ['modifiers' => 'full', 'team' => $team]) +

{{ $team->name }}