Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4955)

Unified Diff: chrome/browser/resources/md_history/synced_device_card.html

Issue 2318343004: MD History: Truncate long search terms in card title box (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/shared_style.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/synced_device_card.html
diff --git a/chrome/browser/resources/md_history/synced_device_card.html b/chrome/browser/resources/md_history/synced_device_card.html
index 9fa197502c79e0ad4c47adfecc66ea0b07a07c05..ff6329f0ba07518f0a91c3167974aa931a109cc6 100644
--- a/chrome/browser/resources/md_history/synced_device_card.html
+++ b/chrome/browser/resources/md_history/synced_device_card.html
@@ -20,6 +20,7 @@
}
#card-heading {
+ -webkit-padding-end: 0;
cursor: pointer;
justify-content: space-between;
}
@@ -32,6 +33,17 @@
color: var(--secondary-text-color);
}
+ #title-left-content {
+ display: flex;
+ overflow: hidden;
+ }
+
+ #device-name {
+ overflow: hidden;
+ padding-right: 3px;
+ text-overflow: ellipsis;
+ }
+
#right-buttons {
-webkit-margin-end: 4px;
}
@@ -67,8 +79,10 @@
<div id="history-item-container">
<div class="card-title" id="card-heading" aria-expanded$="[[opened]]"
aria-controls="collapse" on-tap="toggleTabCard">
- <div>
- [[device]]
+ <div id="title-left-content">
+ <div id="device-name">
+ [[device]]
+ </div>
<span id="last-update-time">[[lastUpdateTime]]</span>
</div>
<div id="right-buttons">
« no previous file with comments | « chrome/browser/resources/md_history/shared_style.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698