JSFiddle - React, Tailwind, and code Playground
by sjmcpherson
HTML
<div class="parent">
<span class="child1">
<a href="#">link 1</a> text <a href="#">Lorem ipsum dolor</a> </span>
</div>
<div class="parent">
<span class="child1">
<a href="#">link 1</a> text <input type="text" class="request-topic-link" value="lorem ipsum-dolor">
</span>
</div>
CSS
.parent {
width: 120px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
a{
display:inline-block;
}
input{
width : auto;
background : none;
cursor : pointer;
border : none;
margin : 0px;
display:inline!Important;
white-space: pre;
padding: 0px;
background: none;
border: 0;
font: inherit;
line-height: normal;
padding: 0;
-webkit-appearance: button; /* for input */
-webkit-user-select: none; /* for button */
}