feat(matchTicker): add matchPage link if applicable#4371
Conversation
|
question: should bestof link or not? |
components/match_ticker/commons/match_ticker_display_components.lua
Outdated
Show resolved
Hide resolved
I don't like the looks of it at all, but i think the bigger the area to click on the better for the UX |
mind there is a design rework ongoing for this (PR #4363), so looks of it will change in the forseeable future anyways |
IIRC that redesign also does not have a dedicated thing for match pages. I think it can be quite confusing as well as not be visually appealing to have a link behind non-text/image/icon things like scores, as it's not obvious where it links to |
|
Personally, I would just make the whole match "card" clickable which takes you to the match, i.e., making the card more of a button instead. Would retain clicking on specific items such as a team name or logo or tournament/icon to go to where they go now though. Probably a lot more work though and this is fine too. |
lot more work and would make the already clickable elements (streams, tournament page) useless |
|
alternatively we could add a matchpage icon like the streams via countdown |
I like this idea a lot more. Using the Best of text as the match page would break the site norms already established via stuff like |
That would be ideal, but IMO align it with the tournament name, not the stream icons |
|
if someone provides an icon for it i can look into that |
What about just using the same icon as the Infobox for websites (maybe not this exact icon but you get the idea) https://liquipedia.net/commons/File:InfoboxIcon_Homepage.png |
|
https://liquipedia.net/commons/File:Icon_Matchpage.png |
imo icon needs to be a bit darker on lightmode fwiw we can easily add light/darkmode versiosn in the code too (using LIS display for it) |
|
martin on discord: remark for my later self:
|
Adjusted existing HTML/CSS from CS wiki to produce this: <td class="match-filler" colspan="3">
<div style="display:flex;justify-content: space-between;">
<div style="display:flex;gap:5px;align-items:center;width: calc(50% + 13px);justify-content: space-between;">
<span class="match-countdown"><span class="timer-object timer-object-countdown-only" data-timestamp="1720260000" data-separator="&#8203;"><span class="timer-object-date">July 6, 2024 - 10:00 <abbr data-tz="+0:00" title="Coordinated Universal Time (UTC+0)">UTC</abbr></span><span class="timer-object-separator">&#8203;</span><span class="timer-object-countdown"><span class="timer-object-countdown-time"><span class="timer-object-countdown-live">LIVE!</span></span></span></span></span>
<span class="league-icon-small-image"><a href="/leagueoflegends/Match:ID_YMcIp0UT5g_0008" title="Match Page"><img alt="Match Page" src="/commons/images/thumb/f/fd/Icon_Matchpage.png/39px-Icon_Matchpage.png" decoding="async" width="39" height="50" srcset="/commons/images/thumb/f/fd/Icon_Matchpage.png/59px-Icon_Matchpage.png 1.5x, /commons/images/thumb/f/fd/Icon_Matchpage.png/79px-Icon_Matchpage.png 2x" style="image-rendering: -webkit-optimize-contrast;"></a></span>
</div>
<div style="width: min(calc(50% - 13px), 185px);display:flex;">
<div class="text-nowrap" style="overflow:hidden; text-overflow:ellipsis; width:100%; font-size:11px; height:16px; margin:auto;text-align:center;"><a href="/counterstrike/IESF/World_Esports_Championships/2024/Western_Europe" title="IESF/World Esports Championships/2024/Western Europe">IESF ERQ West 2024</a></div>
<span class="league-icon-small-image"><a href="/counterstrike/IESF/World_Esports_Championships/2024/Western_Europe" title="IESF World Esports Championship 2024: West European Qualifier"><img alt="IESF World Esports Championship 2024: West European Qualifier" src="/commons/images/thumb/0/07/IESF_World_Esports_Championships_2024_alt_icon_allmode.png/50px-IESF_World_Esports_Championships_2024_alt_icon_allmode.png" decoding="async" width="50" height="31" srcset="/commons/images/thumb/0/07/IESF_World_Esports_Championships_2024_alt_icon_allmode.png/75px-IESF_World_Esports_Championships_2024_alt_icon_allmode.png 1.5x, /commons/images/thumb/0/07/IESF_World_Esports_Championships_2024_alt_icon_allmode.png/100px-IESF_World_Esports_Championships_2024_alt_icon_allmode.png 2x"></a></span>
</div>
</div>
</td> |
thx will check how it looks for finished matches in september (longest month display) with 2 streams on it when building it |
|
I had a brief talk about it with Kevin and he suggested to use a button "Match details" instead of an icon, since the current chosen icon doesn't seem very clear. Let me know what you think |
|
Ah I see on mobile that would become a problem |
not only on mobile |
|
That's indeed not making it easier. What about this icon suggestion from Kevin: https://fontawesome.com/v5/icons/info-circle?f=classic&s=solid ? |
tbh i am fine with almost any icon :P |
|
Could we make the icon the same color that it has on brackets for popups? For long tournament names it looks like it belongs to the name, not like a separate thing to click on |
|
imo the button is the only one that's clear is a link (especially on mobile). How about putting the "i" in a button? |
|
Both "i" solutions looks good to me tbh |
mbergen
left a comment
There was a problem hiding this comment.
Not entirely convinced on the display, but i don't have a better suggestion
This for me too |















Summary
requested by elisa
Adds a link to the matchPage on the score elements if the match has a match page stored in match2bracketdata.
regarding the css change: can not remove/replace the old classes due to them still being used on several wikis
How did you test this change?
dev + browser dev tools
https://liquipedia.net/leagueoflegends/Liquipedia:Matches/mainpage/dynamic/dev