chore(profile): improved responsiveness & design

This commit is contained in:
2026-02-17 23:00:53 +01:00
parent 3705325a9a
commit acc15619a9
4 changed files with 20 additions and 5 deletions
@@ -214,7 +214,7 @@ async function fetchPlayerJournal() {
@use '../../styles/responsive'; @use '../../styles/responsive';
.profile-history-list { .profile-history-list {
overflow: auto; overflow-y: scroll;
height: 100%; height: 100%;
} }
@@ -284,8 +284,8 @@ async function fetchPlayerJournal() {
} }
@include responsive.midScreen { @include responsive.midScreen {
.history-list-box { .profile-history-list {
max-height: 100vh; height: 100vh;
} }
} }
</style> </style>
@@ -60,6 +60,8 @@ defineProps({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@use '../../styles/responsive';
.profile-recent-stats { .profile-recent-stats {
overflow: hidden; overflow: hidden;
} }
@@ -90,4 +92,10 @@ defineProps({
font-size: 0.9em; font-size: 0.9em;
} }
} }
@include responsive.smallScreen {
.month-stats-box {
grid-template-columns: repeat(2, 1fr);
}
}
</style> </style>
@@ -67,7 +67,6 @@
class="player-activity" class="player-activity"
v-if="activeDispatches.length > 0 || activeTrains.length > 0" v-if="activeDispatches.length > 0 || activeTrains.length > 0"
> >
<div class="info-activity" v-if="activeDispatches.length > 0"> <div class="info-activity" v-if="activeDispatches.length > 0">
<router-link <router-link
v-for="d in activeDispatches" v-for="d in activeDispatches"
@@ -361,4 +360,11 @@ const activeTrains = computed(() => {
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
} }
} }
@include responsive.smallScreen {
.player-stats {
display: grid;
grid-template-columns: 1fr;
}
}
</style> </style>
+2 -1
View File
@@ -9,7 +9,7 @@
<div class="profile-side"> <div class="profile-side">
<ProfileRecentStats :playerInfo="playerInfo" /> <ProfileRecentStats :playerInfo="playerInfo" />
<ProfileHistoryList :playerName="playerName" /> <ProfileHistoryList :playerName="playerName" />
</div> </div>
</div> </div>
@@ -66,6 +66,7 @@ onMounted(() => {
async function fetchAllData() { async function fetchAllData() {
const playerId = route.query.playerId?.toString(); const playerId = route.query.playerId?.toString();
playerInfo.value = null;
playerTD2Info.value = null; playerTD2Info.value = null;
playerDataStatus.value = Status.Data.Loading; playerDataStatus.value = Status.Data.Loading;