mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
replace text capitalize with capitalize first word
This commit is contained in:
@@ -23,6 +23,13 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cap-first {
|
||||||
|
display: inline-block;
|
||||||
|
&::first-letter {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.rounded {
|
.rounded {
|
||||||
border-radius: $small;
|
border-radius: $small;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<span v-else-if="album.is_single">Single</span>
|
<span v-else-if="album.is_single">Single</span>
|
||||||
<span v-else>Album</span>
|
<span v-else>Album</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="title ellip">
|
<div class="title ellip cap-first">
|
||||||
{{ album.title }}
|
{{ album.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,7 +118,6 @@ useVisibility(albumheaderthing, handleVisibilityState);
|
|||||||
.title {
|
.title {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-transform: capitalize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.artist {
|
.artist {
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
<span v-else>MP3</span>
|
<span v-else>MP3</span>
|
||||||
• {{ track.bitrate }}
|
• {{ track.bitrate }}
|
||||||
</div>
|
</div>
|
||||||
<div class="title ellip">{{ props.track.title }}</div>
|
<div class="title ellip cap-first">{{ props.track.title }}</div>
|
||||||
<div class="separator no-border"></div>
|
<div class="separator no-border"></div>
|
||||||
<div class="artists ellip" v-if="props.track.artists[0] !== ''">
|
<div class="artists ellip cap-first" v-if="props.track.artists[0] !== ''">
|
||||||
<span
|
<span
|
||||||
v-for="artist in putCommas(props.track.artists)"
|
v-for="artist in putCommas(props.track.artists)"
|
||||||
:key="artist"
|
:key="artist"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="now-playing-card t-center rounded">
|
<div class="now-playing-card t-center rounded">
|
||||||
<div class="headin">Now Playing</div>
|
<div class="headin">Now playing</div>
|
||||||
<div
|
<div
|
||||||
class="button menu rounded"
|
class="button menu rounded"
|
||||||
@click="showContextMenu"
|
@click="showContextMenu"
|
||||||
@@ -67,7 +67,6 @@ const showContextMenu = (e: Event) => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-transform: capitalize;
|
|
||||||
|
|
||||||
.l-track-time {
|
.l-track-time {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button class="shuffle-queue action">
|
<button class="shuffle-queue action">
|
||||||
<SaveAsPlaylistSvg />
|
<SaveAsPlaylistSvg />
|
||||||
<span> Save As Playlist </span>
|
<span> Save as Playlist </span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="icon image" :class="from.icon"></div>
|
<div class="icon image" :class="from.icon"></div>
|
||||||
Playing from
|
Playing from
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name cap-first">
|
||||||
<div id="to">
|
<div id="to">
|
||||||
{{ from.text }}
|
{{ from.text }}
|
||||||
</div>
|
</div>
|
||||||
@@ -120,7 +120,6 @@ function goTo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
text-transform: capitalize;
|
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +129,6 @@ function goTo() {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: $small;
|
gap: $small;
|
||||||
text-transform: capitalize;
|
|
||||||
color: rgba(255, 255, 255, 0.849);
|
color: rgba(255, 255, 255, 0.849);
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="tab-buttons-wrapper">
|
<div class="tab-buttons-wrapper">
|
||||||
<div id="tabheaders" class="rounded noscroll">
|
<div id="tabheaders" class="rounded noscroll">
|
||||||
<div
|
<div
|
||||||
class="tab"
|
class="tab cap-first"
|
||||||
v-for="slot in $slots.default()"
|
v-for="slot in $slots.default()"
|
||||||
:key="slot.key"
|
:key="slot.key"
|
||||||
@click="s.changeTab(slot.props.name)"
|
@click="s.changeTab(slot.props.name)"
|
||||||
@@ -55,7 +55,7 @@ const s = useSearchStore();
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-transform: capitalize;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
padding: 0 $small;
|
padding: 0 $small;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
@click="option.action()"
|
@click="option.action()"
|
||||||
>
|
>
|
||||||
<div class="icon image" :class="option.icon"></div>
|
<div class="icon image" :class="option.icon"></div>
|
||||||
<div class="label ellip">{{ option.label }}</div>
|
<div class="label ellip cap-first">{{ option.label }}</div>
|
||||||
<div class="more image" v-if="option.children"></div>
|
<div class="more image" v-if="option.children"></div>
|
||||||
<div class="children rounded shadow-sm" v-if="option.children">
|
<div class="children rounded shadow-sm" v-if="option.children">
|
||||||
<div
|
<div
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
:class="[{ critical: child.critical }, child.type]"
|
:class="[{ critical: child.critical }, child.type]"
|
||||||
@click="child.action()"
|
@click="child.action()"
|
||||||
>
|
>
|
||||||
<div class="label ellip">
|
<div class="label ellip cap-first">
|
||||||
{{ child.label }}
|
{{ child.label }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -71,7 +71,6 @@ const context = useContextStore();
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
padding: $small;
|
padding: $small;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-transform: capitalize;
|
|
||||||
|
|
||||||
.more {
|
.more {
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}"
|
}"
|
||||||
></div>
|
></div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="name ellip">{{ props.playlist.name }}</div>
|
<div class="name ellip cap-first">{{ props.playlist.name }}</div>
|
||||||
<div class="count">
|
<div class="count">
|
||||||
<span v-if="props.playlist.count == 0">No Tracks</span>
|
<span v-if="props.playlist.count == 0">No Tracks</span>
|
||||||
<span v-else-if="props.playlist.count == 1"
|
<span v-else-if="props.playlist.count == 1"
|
||||||
@@ -85,7 +85,6 @@ const props = defineProps<{
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
text-transform: capitalize;
|
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,10 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div @click="emitUpdate(track)">
|
<div @click="emitUpdate(track)">
|
||||||
<span class="ellip title">{{ track.title }}</span>
|
<span class="ellip title cap-first">{{ track.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="song-artists">
|
<div class="song-artists cap-first">
|
||||||
<div class="ellip" v-if="track.artists[0] !== ''">
|
<div class="ellip" v-if="track.artists[0] !== ''">
|
||||||
<span
|
<span
|
||||||
class="artist"
|
class="artist"
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<router-link
|
<router-link
|
||||||
class="song-album ellip"
|
class="song-album ellip cap-first"
|
||||||
:to="{
|
:to="{
|
||||||
name: 'AlbumView',
|
name: 'AlbumView',
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -23,9 +23,11 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<div class="title ellip">{{ props.track.title }}</div>
|
<div class="title ellip cap-first">
|
||||||
|
{{ props.track.title }}
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="artist ellip">
|
<div class="artist ellip cap-first">
|
||||||
<span v-for="artist in putCommas(props.track.artists)" :key="artist">{{
|
<span v-for="artist in putCommas(props.track.artists)" :key="artist">{{
|
||||||
artist
|
artist
|
||||||
}}</span>
|
}}</span>
|
||||||
@@ -97,7 +99,6 @@ const playThis = (track: Track) => {
|
|||||||
grid-template-columns: min-content 1fr;
|
grid-template-columns: min-content 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: $small 1rem;
|
padding: $small 1rem;
|
||||||
// text-transform: capitalize;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
Reference in New Issue
Block a user