From 2b2dc1c4e313290b20492616c19cd86cf25062b3 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 28 Aug 2016 21:14:47 +0800 Subject: [PATCH] fix some property value (task name, download dir, torrent hash, tracker server and file name) make page too wide in task detail page --- src/styles/controls/task-table.css | 7 ------- src/styles/core/core.css | 11 +++++++++++ src/views/list.html | 2 +- src/views/task-detail.html | 13 +++++++------ 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/styles/controls/task-table.css b/src/styles/controls/task-table.css index 9075105..1b39ae4 100644 --- a/src/styles/controls/task-table.css +++ b/src/styles/controls/task-table.css @@ -45,18 +45,11 @@ .task-table .task-name { font-size: 14px; display: block; - word-break: keep-all; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } .task-table .peer-name-wrapper { display: inline-block; width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } .task-table .task-files, .task-table .task-size { diff --git a/src/styles/core/core.css b/src/styles/core/core.css index cafa4c4..6c063eb 100644 --- a/src/styles/core/core.css +++ b/src/styles/core/core.css @@ -38,6 +38,17 @@ td { cursor: pointer !important; } +.allow-word-break { + word-wrap: break-word; + word-break: break-all; +} + +.auto-ellipsis { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: absolute; diff --git a/src/views/list.html b/src/views/list.html index 4803381..c4f6031 100644 --- a/src/views/list.html +++ b/src/views/list.html @@ -38,7 +38,7 @@
diff --git a/src/views/task-detail.html b/src/views/task-detail.html index bfda2bb..73e8454 100644 --- a/src/views/task-detail.html +++ b/src/views/task-detail.html @@ -28,7 +28,7 @@ Task Name
- +
@@ -117,7 +117,7 @@ Info Hash
- +
@@ -125,7 +125,7 @@ Download Dir
- +
@@ -138,7 +138,8 @@ title="{{(context.collapseTrackers ? 'Expand' : 'Collapse') | translate}}">
-
+
@@ -221,7 +222,7 @@
- +
@@ -276,7 +277,7 @@
-
+