mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2025-05-12 21:20:37 +01:00
plugins: better letter if no icon present
This commit is contained in:
parent
54b1bdadd1
commit
3cba71ed31
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@
|
|||
aria-hidden="true"
|
||||
class="letter-logo -ml-4 flex items-center justify-center bg-gradient-to-tr from-primary via-sky-400 to-blue-400 bg-clip-text text-center text-6xl font-bold leading-none text-transparent"
|
||||
>
|
||||
{plugin.name[0]}
|
||||
{plugin.name
|
||||
.replace(/[-\.\_]/g, '')
|
||||
.replace(/^hypr-?(land)?/i, '')[0]
|
||||
?.toUpperCase()}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue