diff --git a/frontend/src/__apps/painel/main.js b/frontend/src/__apps/painel/main.js
index 4f8a69c10..def3ca411 100644
--- a/frontend/src/__apps/painel/main.js
+++ b/frontend/src/__apps/painel/main.js
@@ -290,6 +290,14 @@ new Vue({
this.closeWS();
},
+ changeFontSize(value) {
+ for (var name in this.$refs){
+ if (name.startsWith("sw")) {
+ const cronometro = this.$refs[name]
+ cronometro.changeFontSize(value)
+ }
+ }
+ },
startStopwatch() { if (this.isOpen) this.ws.send(JSON.stringify({ type:'notify', stopwatch:'start' })) },
}
})
diff --git a/frontend/src/components/Cronometro.vue b/frontend/src/components/Cronometro.vue
index 475c2d2a4..a77e1d777 100644
--- a/frontend/src/components/Cronometro.vue
+++ b/frontend/src/components/Cronometro.vue
@@ -5,7 +5,7 @@
:src="audioSrc"
preload="auto"
>
- {{ title }}: {{ formatTime(time) }}
+ {{ title }}: {{ formatTime(time) }}
@@ -28,6 +28,13 @@ export default {
this.$emit('child-mounted'); // Emit a custom event
},
methods: {
+ changeFontSize(value) {
+ const el = this.$refs.time;
+ if (!el) return;
+ let fontSize = window.getComputedStyle(el).fontSize;
+ fontSize = parseFloat(fontSize); // safely convert "16px" → 16
+ el.style.fontSize = (fontSize + value) + 'px';
+ },
handleStartStop() {
this.isRunning = !this.isRunning;
diff --git a/frontend/src/components/PainelResultado.vue b/frontend/src/components/PainelResultado.vue
index 454daaabe..504caba09 100644
--- a/frontend/src/components/PainelResultado.vue
+++ b/frontend/src/components/PainelResultado.vue
@@ -2,14 +2,14 @@