Skip to content

Commit 8472045

Browse files
committed
fix: long paths break EndpointLink ui
1 parent 7031176 commit 8472045

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

lib/components/EndpointLink/endpoint-link.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ <h5 class="http-verb" [ngClass]="verb">{{verb}}</h5>
33
<span><!--
44
--><span class="method-api-url-path">{{path}}</span><!--
55
--></span>
6-
<svg class="expand-icon" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 24 24" xml:space="preserve">
7-
<polygon fill="white" points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "/>
8-
</svg>
96
</div>
7+
<svg class="expand-icon" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 24 24" xml:space="preserve">
8+
<polygon fill="white" points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "/>
9+
</svg>
1010
<div class="servers-overlay" [@overlayExpand]="expanded ? 'expanded' : 'collapsed'">
1111
<div *ngFor="let server of servers" class="server-item">
1212
<div class="description" [innerHtml]="server.description | marked"></div>

lib/components/EndpointLink/endpoint-link.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
}
88

99
.method-endpoint {
10-
padding: 10px 20px;
10+
padding: 10px 30px 10px 20px;
1111
border-radius: $border-radius*2;
1212
background-color: darken($black, 2%);
1313
display: block;
1414
font-weight: $light;
1515
white-space: nowrap;
16-
overflow-x: auto;
16+
overflow-x: hidden;
17+
text-overflow: ellipsis;
1718
border: 1px solid transparent;
1819
}
1920

@@ -82,10 +83,12 @@
8283
width: 20px;
8384
display: inline-block;
8485
float: right;
85-
margin-top: 2px;
8686
background: darken($black, 2%);
8787
transform: rotateZ(0);
8888
transition: all 0.2s ease;
89+
top: 15px;
90+
right: 5px;
91+
position: absolute;
8992
}
9093

9194
:host.expanded {

0 commit comments

Comments
 (0)