Unverified Commit 593a0ed2 authored by christina stead's avatar christina stead Committed by GitHub

Fix overflow for issue tracking feature (#406)

* Fix overflow for issues from issue tracking feature

* try using flex properties

* use truncated class

* add span
parent fa99d9bb
...@@ -44,9 +44,11 @@ export class TableIssues extends React.Component<TableIssueProps> { ...@@ -44,9 +44,11 @@ export class TableIssues extends React.Component<TableIssueProps> {
<div className="issue-banner" key={`issue-${index}`}> <div className="issue-banner" key={`issue-${index}`}>
<a id={`table-issue-link-${index}`} className="table-issue-link" target="_blank" href={issue.url} onClick={logClick}> <a id={`table-issue-link-${index}`} className="table-issue-link" target="_blank" href={issue.url} onClick={logClick}>
<img className="icon icon-red-triangle-warning "/> <img className="icon icon-red-triangle-warning "/>
<span>
{ issue.issue_key } { issue.issue_key }
</span>
</a> </a>
<span className="issue-title-display-text"> <span className="issue-title-display-text truncated">
<span className="issue-title-name"> <span className="issue-title-name">
"{ issue.title } "{ issue.title }
</span>" </span>"
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
height: 40px; height: 40px;
margin: 8px 0; margin: 8px 0;
padding: 8px 16px; padding: 8px 16px;
display: flex;
overflow: hidden;
&:first-child { &:first-child {
margin-top: 24px; margin-top: 24px;
...@@ -19,16 +21,16 @@ ...@@ -19,16 +21,16 @@
} }
.table-issue-link { .table-issue-link {
margin: 0px 5px 0px 0px; margin: 0px 5px 0px 0px;
min-width: fit-content;
} }
.issue-title-name { .issue-title-name {
max-width: 390px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display:inline-block;
} }
.issue-title-display-text { .issue-title-display-text {
display: inline-flex; display: flex;
max-width: fit-content;
} }
.table-issue-more-issues { .table-issue-more-issues {
margin: 0px 2px 0px 2px; margin: 0px 2px 0px 2px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment