Skip to content

Commit ba41dc1

Browse files
committed
Prevent text overflow in resource action URLs
1 parent b1c3c38 commit ba41dc1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/Aspire.Dashboard/Model/ResourceMenuItems.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public static void AddMenuItems(
149149
Text = url.Text,
150150
Tooltip = url.Url,
151151
Icon = s_linkIcon,
152+
Class = "resource-actions-url-menuitem",
152153
AdditionalAttributes = new Dictionary<string, object>
153154
{
154155
["data-openbutton"] = "true",

src/Aspire.Dashboard/wwwroot/css/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,3 +817,8 @@ fluent-tooltip[anchor="dialog_close"] > div {
817817
vertical-align: text-bottom;
818818
margin-right: 3px;
819819
}
820+
821+
.resource-actions-url-menuitem::part(content) {
822+
width: 100%;
823+
text-overflow: ellipsis;
824+
}

0 commit comments

Comments
 (0)