Skip to content

Commit

Permalink
Merge pull request #5647 from kianamcc/SWC-7185
Browse files Browse the repository at this point in the history
SWC-7185: SWC EntityTreeBrowser (EntityBadge) updates on mobile
  • Loading branch information
kianamcc authored Mar 3, 2025
2 parents da8f72a + 6c0fcec commit 5094228
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void setEntity(final EntityHeader entityHeader) {
entityAnchor.addClickHandler(STANDARD_CLICKHANDLER);
entityAnchor.setText(entityHeader.getName());
entityAnchor.addStyleName(
"text-align-left text-overflow-ellipsis inline-block whitespace-nowrap overflowHidden maxWidth100"
"text-align-left text-overflow-ellipsis inline-block whitespace-nowrap overflowHidden max-width-100percent-unless-xs"
);
entityAnchor.setHref("/Synapse:" + entityHeader.getId());
entityAnchor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<t:Table width="100%" height="36px" addStyleNames="entityBadge">
<t:TableRow>
<t:TableData
addStyleNames="min-width-30 text-align-center overflow-x-hidden"
addStyleNames="min-width-30 text-align-center overflow-x-hidden hidden-xs"
width="30px"
>
<g:FocusPanel ui:field="entityTypeIconContainer">
Expand All @@ -23,7 +23,7 @@
/>
</t:TableData>
<t:TableData
addStyleNames="overflow-x-hidden min-width-140"
addStyleNames="overflow-x-hidden min-width-140 hidden-xs"
width="140px"
>
<w:ReactComponent ui:field="iconsContainer" />
Expand Down
3 changes: 3 additions & 0 deletions src/main/webapp/sass/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,9 @@ i.fa.small-icon {
.min-width-200-unless-xs {
min-width: 200px;
}
.max-width-100percent-unless-xs {
max-width: 100%;
}
}
@media (max-width: 500px) {
.hidden-xxs {
Expand Down

0 comments on commit 5094228

Please sign in to comment.