diff --git a/web/chat/chat-thread-ancestors.css b/web/chat/chat-thread-ancestors.css --- a/web/chat/chat-thread-ancestors.css +++ b/web/chat/chat-thread-ancestors.css @@ -3,11 +3,11 @@ display: flex; align-items: center; column-gap: 5px; + flex: 0 0.75 auto; + overflow: hidden; } div.ancestorName { - display: flex; - align-items: center; padding: 2px 6px; border-radius: 2px; box-sizing: border-box; @@ -23,16 +23,13 @@ div.ancestorKeyserver { display: flex; align-items: center; + flex: 0 1 auto; } div.ancestorKeyserverName { border-radius: 0 2px 2px 0; } -svg.ancestorSeparator { - color: var(--thread-ancestor-separator-color); -} - div.ancestorKeyserverOperator { display: flex; column-gap: 5px; @@ -44,6 +41,24 @@ box-sizing: border-box; } +div.middle { + flex: 0 0 auto; +} + +div.currentThreadName { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + + flex: 0 1 auto; + min-width: 0; +} + +svg.ancestorSeparator { + color: var(--thread-ancestor-separator-color); + flex: 0 0 auto; +} + button.seeFullAncestor { font-size: var(--xs-font-12); font-weight: var(--semi-bold); diff --git a/web/chat/chat-thread-ancestors.react.js b/web/chat/chat-thread-ancestors.react.js --- a/web/chat/chat-thread-ancestors.react.js +++ b/web/chat/chat-thread-ancestors.react.js @@ -74,7 +74,10 @@ icon="chevron-right" size={12} /> -
{threadInfo.uiName}
+