Skip to content

Commit ae3d64c

Browse files
fix: add url box and width distribution (#6334)
Co-authored-by: Areeb Jamal <[email protected]>
1 parent 1398f2c commit ae3d64c

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

app/controllers/events/list.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
1212
{
1313
name : this.l10n.t('Name'),
1414
valuePath : 'name',
15-
width : 150,
15+
width : 180,
1616
isSortable : true,
1717
extraValuePaths : ['identifier', 'logoUrl'],
1818
headerComponent : 'tables/headers/sort',
@@ -26,7 +26,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
2626
valuePath : 'startsAt',
2727
extraValuePaths : ['endsAt', 'timezone'],
2828
isSortable : true,
29-
width : 180,
29+
width : 220,
3030
headerComponent : 'tables/headers/sort',
3131
cellComponent : 'ui-table/cell/cell-event-date'
3232

@@ -40,7 +40,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
4040
},
4141
{
4242
name : this.l10n.t('Tickets'),
43-
width : 130,
43+
width : 180,
4444
valuePath : 'tickets',
4545
extraValuePaths : ['totalSales'],
4646
cellComponent : 'ui-table/cell/cell-tickets'
@@ -58,7 +58,7 @@ export default class extends Controller.extend(EmberTableControllerMixin) {
5858
{
5959
name : this.l10n.t('Public URL'),
6060
valuePath : 'url',
61-
width : 250,
61+
width : 220,
6262
cellComponent : 'ui-table/cell/cell-link'
6363
}
6464
];
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
<a href="{{this.record}}">
2-
{{this.record}}
3-
</a>
1+
<UrlBox @url={{this.record}} />
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div class="ui action input" style="width: 100%; height: 36px">
2+
<input class="truncate" style="flex: 1 0 !important" type="text" value={{@url}} placeholder={{@url}} readonly>
3+
<UiPopup @on="click" @content={{t "Link copied to clipboard"}} @position="bottom right">
4+
<CopyButton @clipboardText={{@url}} @class="ui grey icon button rounded-none m-0">
5+
<i class="copy icon"></i>
6+
</CopyButton>
7+
</UiPopup>
8+
<a
9+
id="public_url"
10+
href="{{@url}}"
11+
target="_blank" rel="noopener">
12+
<div class="ui blue icon button ml-auto rounded-l-none m-0">
13+
<i class="share icon" ></i>
14+
</div>
15+
</a>
16+
</div>

0 commit comments

Comments
 (0)