@golstats/gsc-top-player 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-top-player",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "dist/gsc-top-player.umd.js",
5
5
  "module": "dist/gsc-top-player.es.js",
6
6
  "exports": {
package/src/App.vue CHANGED
@@ -4,8 +4,8 @@ import { categoriesDefault } from './components/comparative/categories.js'
4
4
  // import { dummyTopPlayers } from './components/comparative/dummy-top-players.js'
5
5
 
6
6
  // Selecciona una categoría real o la dummy manualmente para pruebas
7
- //const selectedCategories = [{ id: 0, name: 'Categoria' }]
8
- const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
7
+ const selectedCategories = [{ id: 0, name: 'Categoria' }]
8
+ //const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
9
9
 
10
10
  const gameData = {
11
11
  gameId: 90209,
@@ -819,7 +819,7 @@ body {
819
819
 
820
820
  .playerRow {
821
821
  height: 80px;
822
- min-width: 320px;
822
+ min-width: 300px;
823
823
  }
824
824
 
825
825
  .groupsLeague {
@@ -1124,6 +1124,25 @@ body {
1124
1124
  box-sizing: border-box;
1125
1125
  }
1126
1126
  }
1127
+ @media screen and (max-width: 330px) {
1128
+ /* Estilos para botones más pequeños en pantallas menores a 330px */
1129
+ .containerData :deep(.gsc-button) {
1130
+ height: 20px !important;
1131
+ font-size: 10px !important;
1132
+ padding: 2px 8px !important;
1133
+ min-width: 60px !important;
1134
+ max-width: 120px !important;
1135
+ }
1136
+
1137
+ .leftContainer :deep(.gsc-button) {
1138
+ height: 20px !important;
1139
+ font-size: 10px !important;
1140
+ padding: 2px 8px !important;
1141
+ min-width: 60px !important;
1142
+ max-width: 120px !important;
1143
+ }
1144
+ }
1145
+
1127
1146
  @media screen and (max-width: 320px) {
1128
1147
  .btnVideosOptionsType1 {
1129
1148
  display: flex;
@@ -1132,6 +1151,26 @@ body {
1132
1151
  .btnVideosOptions1Games {
1133
1152
  display: none;
1134
1153
  }
1154
+
1155
+ .toniKroosGames {
1156
+ font-size: 10px;
1157
+ line-height: 12px;
1158
+ word-wrap: break-word;
1159
+ white-space: normal;
1160
+ overflow-wrap: break-word;
1161
+ hyphens: auto;
1162
+ max-width: 100px;
1163
+ min-height: 24px;
1164
+ display: -webkit-box;
1165
+ -webkit-line-clamp: 2;
1166
+ -webkit-box-orient: vertical;
1167
+ overflow: hidden;
1168
+ }
1169
+
1170
+ .playerNameGames {
1171
+ min-height: 30px;
1172
+ align-items: flex-start;
1173
+ }
1135
1174
  }
1136
1175
  @media screen and (max-width: 460px) {
1137
1176
  .containerInfoGames {
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div :class="type == 0 ? 'gsc-top' : 'gsc-top-full'">
3
3
  <div ref="myDivRef">
4
+ {{ elementSize.width }}
4
5
  <template v-if="type == 0">
5
6
  <template v-if="topData.length > 0">
6
7
  <!-- Título de la categoría con línea verde -->
@@ -1119,7 +1120,6 @@ export default {
1119
1120
  if (this.game.game_status === 1) {
1120
1121
  data = await axiosInstance.get(this.url + '/' + this.gameId + '/' + this.category)
1121
1122
  } else {
1122
- console.log('LLEGO ES 2 PRWMATCH')
1123
1123
  data = await axiosInstance.get(
1124
1124
  this.urlPrematch +
1125
1125
  seasonGet +
@@ -2,7 +2,6 @@
2
2
  <div ref="myDivRefTopsFull" style="width: 100%; max-width: 100%; box-sizing: border-box">
3
3
  <template v-for="(category, index) in categoryView" :key="index">
4
4
  <div :class="toniKroosWrapperClass">
5
- {{ game }}
6
5
  <GSCTopCategory
7
6
  :is-widget="isWidget"
8
7
  :team-widget="teamWidget"