diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index bcc2d2e79a7e045b923aa0e3e24c70ef68e96e5b..2e2b6d10823e03507a61f8972a3588900b749a9d 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -164,8 +164,18 @@ this.output = this.$refs.output this.input = this.$refs.input this.operate = this.$refs.operate + if(window.innerWidth < 1300){ + this.output.style.width = (this.operate.scrollWidth - 10) + "px" + this.input.style.width = (this.operate.scrollWidth - 14.5) + "px" + } addEventListener("resize",() => { - console.log(window.innerWidth,this.operate.width) + if(window.innerWidth < 1300){ + this.output.style.width = (this.operate.scrollWidth - 10) + "px" + this.input.style.width = (this.operate.scrollWidth - 14.5) + "px" + }else { + this.output.style.width = "99.9%" + this.input.style.width = "99.7%" + } }) }, methods: { diff --git a/target/classes/static/index.html b/target/classes/static/index.html index bcc2d2e79a7e045b923aa0e3e24c70ef68e96e5b..2e2b6d10823e03507a61f8972a3588900b749a9d 100644 --- a/target/classes/static/index.html +++ b/target/classes/static/index.html @@ -164,8 +164,18 @@ this.output = this.$refs.output this.input = this.$refs.input this.operate = this.$refs.operate + if(window.innerWidth < 1300){ + this.output.style.width = (this.operate.scrollWidth - 10) + "px" + this.input.style.width = (this.operate.scrollWidth - 14.5) + "px" + } addEventListener("resize",() => { - console.log(window.innerWidth,this.operate.width) + if(window.innerWidth < 1300){ + this.output.style.width = (this.operate.scrollWidth - 10) + "px" + this.input.style.width = (this.operate.scrollWidth - 14.5) + "px" + }else { + this.output.style.width = "99.9%" + this.input.style.width = "99.7%" + } }) }, methods: {