mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-25 22:41:20 +02:00
Merge pull request #12637 from ZDroid/text-truncate-typo
Fix .text-truncate() typo
This commit is contained in:
@@ -3240,7 +3240,7 @@ a {
|
|||||||
<p>Easily truncate text with an ellipsis with a single mixin. <strong>Requires element to be <code>block</code> or <code>inline-block</code> level.</strong></p>
|
<p>Easily truncate text with an ellipsis with a single mixin. <strong>Requires element to be <code>block</code> or <code>inline-block</code> level.</strong></p>
|
||||||
{% highlight scss %}
|
{% highlight scss %}
|
||||||
// Mixin
|
// Mixin
|
||||||
.text-truncate() {
|
.text-overflow() {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -3250,7 +3250,7 @@ a {
|
|||||||
.branch-name {
|
.branch-name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
.text-truncate();
|
.text-overflow();
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user