Skip to content

Commit 73ae5a9

Browse files
committed
chore: change some design
1 parent 21cea3e commit 73ae5a9

File tree

6 files changed

+4
-24
lines changed

6 files changed

+4
-24
lines changed

frontend/app/components/PageLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const hasScrolled = computed(() => y.value > 25)
99

1010
<template>
1111
<div class="flex min-h-full flex-col">
12-
<div class="sticky top-0">
12+
<div class="sticky top-0 z-10">
1313
<ProgressiveBlur
1414
direction="up"
1515
class="from-shadow-blank/0 to-shadow-default bg-linear-to-t"

frontend/app/components/achievements/AchievementGroup.vue

Lines changed: 0 additions & 19 deletions
This file was deleted.

frontend/app/components/leaderboard/LeaderboardItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const getColorClasses = (rank: number | undefined, mode: 'dark' | 'light') => {
4646
<span class="col-span-full row-span-full">{{ item.rank }}</span>
4747
</div>
4848
<div class="grow">
49-
<div class="flex gap-1">
49+
<div class="flex gap-2">
5050
<p :class="['text-label', { 'text-accent-contrast': isMe }]">
5151
{{ item.name }}
5252
</p>

frontend/app/components/profile/ProfileProjectCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defineProps<{
1313
<p class="text-label text-center">{{ projectName }}</p>
1414
<div class="divide-border-default grid grid-cols-2 divide-x py-2">
1515
<div class="flex flex-col items-center">
16-
<p class="title-text">{{ score || '-' }}</p>
16+
<p class="title-text">{{ score ?? 0 }}</p>
1717
<p class="text-label text-text-hint">{{ $t('points') }}</p>
1818
</div>
1919
<div class="flex flex-col items-center">

frontend/app/composables/useAuth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export function useAuth() {
122122
return me.value?.roles.some((role) => role.role === RoleType.ProjectAdmin) // TODO: scope project admin to current project
123123
})
124124
const isTeamLead = computed(() => {
125-
return true
126125
return me.value?.roles.some((role) => role.role === RoleType.TeamLead) // TODO: scope team lead to current team
127126
})
128127
const isM2M = computed(() => {

frontend/i18n/locales/nb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"pointsExplainerButton": "Få poeng",
3333
"unitLeader": "Unitleder"
3434
},
35-
"place": "plassering",
35+
"place": "plass",
3636
"points": "poeng"
3737
}

0 commit comments

Comments
 (0)