diff --git a/buzz/static/buzz.css b/buzz/static/buzz.css
index eba8530..2589353 100644
--- a/buzz/static/buzz.css
+++ b/buzz/static/buzz.css
@@ -130,15 +130,23 @@ button.secondary {
font-weight: bold;
}
-.table-wrap {
+.table-container {
overflow-x: auto;
+ max-width: 100%;
+}
+
+.table-container table {
+ border-collapse: collapse;
+}
+
+.table-container td:first-of-type {
+ min-width: 200px;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.8rem;
- table-layout: fixed;
}
th {
@@ -195,15 +203,42 @@ tr:hover {
.trunc-cell {
position: relative;
- max-width: 1px;
+ max-width: 0;
+ overflow: hidden;
+}
+
+/* normal state: real ellipsis */
+.trunc-idle {
+ display: block;
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
-.trunc-content {
+/* hover state: hidden by default */
+.trunc-scroll-wrap {
+ display: none;
+ width: 100%;
+ overflow: hidden;
+ white-space: nowrap;
+}
+
+.trunc-scroll {
display: inline-block;
white-space: nowrap;
}
-.trunc-cell:hover .trunc-content {
+/* swap on hover */
+.trunc-cell:hover .trunc-idle {
+ display: none;
+}
+
+.trunc-cell:hover .trunc-scroll-wrap {
+ display: block;
+}
+
+.trunc-cell:hover .trunc-scroll {
animation: scroll-text 4s linear infinite;
}
@@ -242,42 +277,31 @@ code {
padding: 40px;
}
+.trashcan-opts,
.delete-container {
display: flex;
width: 100%;
height: 100%;
min-height: 35px;
- align-items: stretch;
+ min-width: 70px;
}
+.trashcan-opts,
.confirm-opts {
- display: none;
flex-direction: row;
align-items: center;
- justify-content: center;
+ justify-content: space-evenly;
width: 100%;
height: 100%;
- background: rgba(255, 184, 108, 0.2);
- gap: 15px;
+ gap: 0;
}
-.opt {
- cursor: pointer;
- text-align: center;
- font-weight: bold;
- color: var(--orange);
-}
-
-.opt-y:hover {
- color: var(--green);
- text-shadow: 0 0 5px rgba(80, 250, 123, 0.5);
-}
-
-.opt-n:hover {
- color: var(--red);
- text-shadow: 0 0 5px rgba(255, 85, 85, 0.5);
+.confirm-opts {
+ display: none;
+ background: rgba(255, 184, 108, 0.2);
}
+.opt,
.btn-r,
.btn-del,
.btn-x {
@@ -303,6 +327,16 @@ code {
background: rgba(255, 85, 85, 0.1);
}
+.opt-y:hover {
+ color: var(--green);
+ text-shadow: 0 0 5px rgba(80, 250, 123, 0.5);
+}
+
+.opt-n:hover {
+ color: var(--red);
+ text-shadow: 0 0 5px rgba(255, 85, 85, 0.5);
+}
+
::-webkit-scrollbar {
width: 8px;
height: 8px;
diff --git a/buzz/templates/torrents.html b/buzz/templates/torrents.html
index 274788d..9babb3d 100644
--- a/buzz/templates/torrents.html
+++ b/buzz/templates/torrents.html
@@ -118,23 +118,32 @@
th:nth-child(6),
td:nth-child(6) {
- width: 60px;
+ width: 150px;
}
th:nth-child(7),
td:nth-child(7) {
- width: 150px;
+ width: 85px;
}
th:nth-child(8),
td:nth-child(8) {
- width: 85px;
+ width: 80px;
+ text-align: center;
}
- th:nth-child(9),
- td:nth-child(9) {
- width: 75px;
- text-align: right;
+ @media (max-width: 500px) {
+
+ th:nth-child(2),
+ td:nth-child(2),
+ th:nth-child(3),
+ td:nth-child(3),
+ th:nth-child(6),
+ td:nth-child(6),
+ th:nth-child(7),
+ td:nth-child(7) {
+ display: none;
+ }
}
.status {
@@ -217,7 +226,7 @@
-
+
@@ -226,9 +235,8 @@
| Prog |
Size |
Files |
- Links |
- Ended |
- ID |
+ Ended |
+ ID |
Act |
@@ -236,13 +244,16 @@
{% for torrent in torrents %}
|
- {{ torrent.name }}
+ {{ torrent.name }}
+
+ {{ torrent.name }}
+
|
- [{{ torrent.status }}] |
+ [{{ torrent.status
+ }}] |
{{ torrent.progress }}% |
{{ torrent.size }} |
{{ torrent.selected_files }} |
- {{ torrent.links }} |
{{ torrent.short_id }} |
@@ -259,7 +270,7 @@
|
{% else %}
- No cached torrents yet. Wait for the first sync or trigger POST
+ No cached torrents yet. Wait for the first sync or trigger POST
/sync. |
|
{% endfor %}
diff --git a/buzz/templates/trashcan.html b/buzz/templates/trashcan.html
index ba267c1..bf956ce 100644
--- a/buzz/templates/trashcan.html
+++ b/buzz/templates/trashcan.html
@@ -1,19 +1,50 @@
+
buzz: trashcan
-
+
+
@@ -42,7 +73,7 @@
[ERROR] {{ last_error }}
{% endif %}
-
+
@@ -56,27 +87,43 @@
{% for torrent in trash_torrents %}
- {{ torrent.name }} |
+
+ {{ torrent.name }}
+
+ {{ torrent.name }}
+
+ |
{{ torrent.size }} |
{{ torrent.file_count }} |
|
{% else %}
- | Trashcan is empty. |
+
+ | Trashcan is empty. |
+
{% endfor %}
@@ -86,15 +133,15 @@
+