Skip to content

Commit

Permalink
[ConsentV2] Truncate the consent content with ellipsis
Browse files Browse the repository at this point in the history
This CL truncate the content to have a maximum of 2 lines with ellipsis
at the end.

(cherry picked from commit 358b119)

Bug: 1298116, 1302728
Change-Id: I11e378cc67851cb0973a5a60d2b3896ed027341d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3503948
Reviewed-by: Tibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Mei Liang <meiliang@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#977821}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3510947
Cr-Commit-Position: refs/branch-heads/4896@{#395}
Cr-Branched-From: 1f63ff4-refs/heads/main@{#972766}
  • Loading branch information
Mei Liang authored and Chromium LUCI CQ committed Mar 8, 2022
1 parent b1aafd6 commit d3bc043
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -60,6 +60,14 @@
width: 220px;
}

.truncate {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
}

.button-container {
display: inline-block;
margin-block-end: 16px;
Expand Down Expand Up @@ -99,7 +107,7 @@
<template id="consentStepRepeat" is="dom-repeat" items="[[steps_]]"
as="step">
<div class="step-container" id="[[step.id]]">
<div class="content-container">
<div class="content-container truncate">
<span class="content">
[[step.content]]
</span>
Expand Down

0 comments on commit d3bc043

Please sign in to comment.