1.calc
width : calc(100% - 50px); /* Note that there should be spaces before and after the operator. */
width : calc(100% - 2.5rem); /* Note that there should be spaces before and after the operator. */
2. If the field exceeds the length, an ellipsis is displayed
.aticle {
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
}