Limit account status text

Uses gr-limited-text to truncate account statuses to 20ch.

Bug: Issue 8787
Change-Id: I139f44ef0c343eeedceeaf497595c8e71a39bb07
This commit is contained in:
Kasper Nilsson
2018-04-19 11:28:54 +02:00
parent 3da5da7dea
commit fa589d6e3c

View File

@@ -20,6 +20,7 @@ limitations under the License.
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../gr-avatar/gr-avatar.html">
<link rel="import" href="../gr-limited-text/gr-limited-text.html">
<link rel="import" href="../gr-rest-api-interface/gr-rest-api-interface.html">
<dom-module id="gr-account-label">
@@ -63,7 +64,7 @@ limitations under the License.
[[_computeEmailStr(account)]]
</span>
<template is="dom-if" if="[[account.status]]">
<span>([[account.status]])</span>
(<gr-limited-text limit="20" text="[[account.status]]"></gr-limited-text>)
</template>
</span>
</span>