I am looking to create a two-column list with variable width on the left and fixed width on the right. The text on the left column should be truncated based on the window size:
+----------------------+-----------+
|Variable width text...|Fixed width|
+----------------------+-----------+
I have searched for examples on how to truncate text in HTML/CSS, but they all use fixed width which doesn't suit my variable-width requirement. This results in the left column text not being truncated properly, causing the element to be wider than needed.
I have tried multiple approaches, but none seem to work correctly, making it challenging to provide a sample code. This task is specifically for a WebView in a desktop application, so compatibility with the latest version of WebKit is all that is required.