From 3485d2ddc71b75b10436c400da7f8f543bc16ec2 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 17 Jan 2022 20:50:48 +0800 Subject: [PATCH] fix css style --- src/ui/common.css | 5 ++--- src/ui/header.css | 4 ++++ src/ui/index.css | 6 +----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ui/common.css b/src/ui/common.css index f5b1735c1..df1ea1f44 100644 --- a/src/ui/common.css +++ b/src/ui/common.css @@ -93,14 +93,13 @@ input.outline-focus:focus { } @mixin ELLIPSIS { - overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + overflow-x: hidden; } .ellipsis { - text-overflow: ellipsis; - white-space: nowrap; + @ELLIPSIS; } div.password svg { diff --git a/src/ui/header.css b/src/ui/header.css index e444c1f56..f0960b973 100644 --- a/src/ui/header.css +++ b/src/ui/header.css @@ -1,3 +1,7 @@ +header div { + word-wrap: normal; +} + header #screens { background: white; border: #A9A9A9 1px solid; diff --git a/src/ui/index.css b/src/ui/index.css index d39249d2d..31079e963 100644 --- a/src/ui/index.css +++ b/src/ui/index.css @@ -52,9 +52,7 @@ div.sessions-tab span { display: inline-block; padding: 6px 12px; cursor: pointer; - text-overflow: ellipsis; - white-space: nowrap; - overflow-x: hidden; + @ELLIPSIS; } div.sessions-tab svg { @@ -230,7 +228,6 @@ div.remote-session .platform .username{ bottom: 38px; font-size: 0.8em; width: 220px; - overflow: hidden; text-align: center; } @@ -272,7 +269,6 @@ div.remote-session-list .name .username { margin-top: 3px; font-size: 0.8em; color: color(lighter-text); - overflow: hidden; } div.remote-session .text {