@golstats/gsc-top-player 1.0.9 → 1.0.11

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.
@@ -55,7 +55,7 @@
55
55
  ? '180px'
56
56
  : '110px'
57
57
  "
58
- buttonFontSize="12px"
58
+ :buttonFontSize="getButtonFontSize()"
59
59
  iconSize="11px"
60
60
  @expand="clickexpand"
61
61
  @more="morestats"
@@ -766,6 +766,20 @@ export default {
766
766
  ],
767
767
  }),
768
768
  methods: {
769
+ getButtonFontSize() {
770
+ // Ajustar el tamaño de la fuente según el ancho del componente
771
+ if (this.elementSize.width > 500) {
772
+ return '14px'
773
+ } else if (this.elementSize.width > 400) {
774
+ return '13px'
775
+ } else if (this.elementSize.width > 300) {
776
+ return '12px'
777
+ } else if (this.elementSize.width > 200) {
778
+ return '11px'
779
+ } else {
780
+ return '10px'
781
+ }
782
+ },
769
783
  changeStateLoading(value) {
770
784
  this.isloading = value
771
785
  },
@@ -68,7 +68,7 @@ const props = defineProps({
68
68
  },
69
69
  })
70
70
 
71
- // Si useDummyData es true, usa datos dummy, si es false busca datos reales de la categoría
71
+ // Si useDummyData es true, usa datos dummy, si es false busca datos reales
72
72
  const dummyData = props.useDummyData ? dummyTopPlayers : null
73
73
  </script>
74
74