Skip to content

Commit

Permalink
use r4-channel-slug to display @
Browse files Browse the repository at this point in the history
  • Loading branch information
ug.rp committed May 17, 2024
1 parent e437582 commit 7d17df0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
8 changes: 4 additions & 4 deletions public/themes/classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,7 @@ radio4000-player .PlayerControl-group .Btn {
min-height: 0;
}

r4-page-channel-tracks r4-page-header h1 a::before,
r4-page-channel r4-page-header h1 a::before,
r4-channel-card r4-channel-slug::before {
r4-channel-slug::before {
content: '@';
}

Expand Down Expand Up @@ -584,9 +582,11 @@ r4-page-channel {
}
}
r4-map {
& r4-map-popup dialog {
max-width: calc(var(--s-container--channel-card) / 2.5);
}
& r4-channel-card {
flex-direction: column;
max-width: calc(var(--s-container--channel-card) / 2);
& r4-channel-url a {
white-space: pre-wrap;
word-break: break-all;
Expand Down
8 changes: 5 additions & 3 deletions src/components/r4-app-user-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ export default class R4AppUserMenu extends LitElement {
}
renderChannelLinks() {
if (this.channel) {
return html`<a aria-current=${this.isCurrent(`/${this.channel.slug}`)} href=${this.href + '/' + this.channel.slug}
>${this.channel.slug}</a
>`
return html`
<a aria-current=${this.isCurrent(`/${this.channel.slug}`)} href=${this.href + '/' + this.channel.slug}>
<r4-channel-slug> ${this.channel.slug} </r4-channel-slug>
</a>
`
} else {
return html`<a aria-current=${this.isCurrent('/new')} href=${this.href + '/new'}>New radio</a>`
}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/base-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ export default class BaseChannel extends R4Page {
return html`
<menu>
<li>
<h1><a aria-current=${this.isCurrent(o)} href=${o}>${this.channel.slug}</a></h1>
<h1>
<a aria-current=${this.isCurrent(o)} href=${o}>
<r4-channel-slug>${this.channel.slug}</r4-channel-slug>
</a>
</h1>
</li>
<li>
<a aria-current=${this.isCurrent(o + '/tracks')} href=${o + '/tracks'}>Tracks</a>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/r4-page-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export default class R4PageAdd extends BaseChannel {
<h1><a aria href="${this.config.href}/add?slug=${this.selectedSlug}">Add track</a></h1>
</li>
<li>
<a aria href="${this.config.href}/${this.selectedSlug}">${this.selectedSlug}</a>
<a aria href="${this.config.href}/${this.selectedSlug}">
<r4-channel-slug> ${this.selectedSlug} </r4-channel-slug>
</a>
</li>
</menu>
`
Expand Down
6 changes: 5 additions & 1 deletion src/pages/r4-page-channel-tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export default class R4PageChannelTracks extends BaseChannel {
return html`
<menu>
<li>
<h1><a href=${this.channelOrigin}>${this.slug}</a></h1>
<h1>
<a href=${this.channelOrigin}>
<r4-channel-slug> ${this.slug} </r4-channel-slug>
</a>
</h1>
</li>
<li><r4-button-play .channel=${this.channel} label=" Play all"></r4-button-play></li>
<li>
Expand Down

0 comments on commit 7d17df0

Please sign in to comment.