Skip to content

Commit

Permalink
Merge pull request #28 from LyticalApp/1.2.6
Browse files Browse the repository at this point in the history
1.2.6 version bump and logic fixes

- version bump
- Settings menu now closes correctly on click
- show roles on champselect/pregame lobby
  • Loading branch information
downthecrop authored Nov 11, 2022
2 parents 1442228 + 0090e87 commit 1b110f9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Lytical",
"author": "downthecrop",
"description": "Lytical is an open source League of Legends statistics and profile analytics tool for all regions including Garena and WeGame",
"version": "1.2.5",
"version": "1.2.6",
"repository": "https://github.com/LyticalApp/Lytical/",
"private": true,
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions public/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ html{
background-color: var(--dark-grey);
}

.wrapper {
margin:auto;
display: flex;
justify-content: center;
overflow-y:scroll;
height:calc(100vh - 42px);
}

body {
margin:0px;
font-family: Roboto;
Expand Down
7 changes: 0 additions & 7 deletions src/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ export default {
</script>

<style scoped>
.wrapper {
margin:auto;
display: flex;
justify-content: center;
overflow-y:scroll;
height:calc(100vh - 42px);
}
.v-enter-active,
.v-leave-active {
transition: opacity 0.5s ease;
Expand Down
6 changes: 2 additions & 4 deletions src/LobbyView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ export default {
}
case 'lol-match-playercard':
case 'lol-lobby-playercard': {
this.loading = false;
const filteredData = data;
filteredData.matchHistory.games.games = filterGameModes(filteredData.matchHistory.games.games);
if (this.lobbyPlayers.findIndex((p) => p.username === data.username) === -1) this.lobbyPlayers.push(data);
if (this.lobbyPlayers.length > 0) this.loading = false;
if (this.lobbyPlayers.length > 5) {
this.sortTeamsByRole();
}
if (this.lobbyPlayers.length > 4) { this.sortTeamsByRole(); }
break;
}
default: {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div>
<div class="navWrapper">
<div :class='`item ${ viewingHome ? "underlined" : ""}`' @click="this.showSettings = false">
<div :class='`item ${ viewingHome ? "underlined" : ""}`' @click="showSettings = false">
<router-link
:to="{
name: 'Home',
params: { summonerSearch: summonerSearch }}">
Profile
</router-link>
</div>
<div :class='`item ${ viewingLobby ? "underlined" : ""}` ' @click="this.showSettings = false">
<div :class='`item ${ viewingLobby ? "underlined" : ""}` ' @click="showSettings = false">
<router-link to="Lobby">
Lobby
</router-link>
Expand All @@ -27,7 +27,7 @@
<img @click="reload()"
:src='`assets/refresh-svg.svg`'
style="height:20px;opacity:.2;padding-right:10px;color:white;">
<img @click="this.showSettings = true"
<img @click="showSettings = !showSettings"
:src='`assets/settings.svg`'
style="height:20px;opacity:.2;">
</div>
Expand Down

0 comments on commit 1b110f9

Please sign in to comment.