From 40c76781c038f2af9b211400a64d4cbe1fc292b2 Mon Sep 17 00:00:00 2001 From: 632d6423b4d9145d677b07db <632d6423b4d9145d677b07db@devide> Date: Fri, 21 Apr 2023 15:57:29 +0000 Subject: [PATCH] Auto commit --- src/main/resources/static/index.html | 12 +++++++++++- target/classes/static/index.html | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index bcc2d2e..2e2b6d1 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 bcc2d2e..2e2b6d1 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: { -- GitLab