How can I add truncate like ... if there is overflow in the <g></g> element

I'm using <g></g>
<g clip-path="url(#card_clip)" >
            ${card_body()}
            ${card_image()}
            ${edit_icon()}
            ${add_icon()}
          </g>


At the moment it is just adding showing if their is overflow but I want to add ... like thing, because I don't have the implementation of #card_clip I want to overide it
Screenshot_from_2024-03-16_19-41-51.png
Was this page helpful?