- 修复SSH字体过小的问题

This commit is contained in:
dushixiang 2021-03-06 17:20:10 +08:00
parent a55e2118a3
commit 60fbb507f5
3 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import (
"time"
)
const Version = "v0.3.1"
const Version = "v0.3.2"
func main() {
err := Run()

View File

@ -1,6 +1,6 @@
{
"name": "next-terminal",
"version": "0.3.1",
"version": "0.3.2",
"private": true,
"dependencies": {
"@ant-design/icons": "^4.3.0",

View File

@ -377,10 +377,10 @@ class Access extends Component {
let width = window.innerWidth;
let height = window.innerHeight;
let dpi = Math.floor(window.devicePixelRatio * 96);
// if (protocol === 'ssh' || protocol === 'telnet') {
// dpi = dpi * 2;
// }
let dpi = 96;
if (protocol === 'ssh' || protocol === 'telnet') {
dpi = dpi * 2;
}
let token = getToken();