79605850

Date: 2025-05-04 17:07:04
Score: 1.5
Natty:
Report link

screenshot of solution

screenshot of code + result

.message-second-line {
  width: 200px;
}
    
.message-text {
  position: relative;
  max-width: 100%;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

it's the display: -webkit-box and line-clamp properties. but be aware that these are not standard and consider the browser support. you may check MDN docs on line-clamp, but couldn't find docs for -webkit-box.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Cheap Nightbot