mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
remove cap-first classes
+ add padding 1rem to context menu child items
This commit is contained in:
@@ -23,13 +23,6 @@
|
|||||||
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 cap-first">
|
<div class="title ellip">
|
||||||
{{ album.title }}
|
{{ album.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,15 +41,15 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useVisibility from "@/composables/useVisibility";
|
import useVisibility from "@/composables/useVisibility";
|
||||||
|
import { paths } from "@/config";
|
||||||
import useNavStore from "@/stores/nav";
|
import useNavStore from "@/stores/nav";
|
||||||
import useAlbumStore from "@/stores/pages/album";
|
import useAlbumStore from "@/stores/pages/album";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
import { getButtonColor, isLight } from "../../composables/colors/album";
|
||||||
import { playSources } from "../../composables/enums";
|
import { playSources } from "../../composables/enums";
|
||||||
import { formatSeconds } from "../../composables/perks";
|
import { formatSeconds } from "../../composables/perks";
|
||||||
import { paths } from "@/config";
|
|
||||||
import { AlbumInfo } from "../../interfaces";
|
import { AlbumInfo } from "../../interfaces";
|
||||||
import PlayBtnRect from "../shared/PlayBtnRect.vue";
|
import PlayBtnRect from "../shared/PlayBtnRect.vue";
|
||||||
import { getButtonColor, isLight } from "../../composables/colors/album";
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
album: AlbumInfo;
|
album: AlbumInfo;
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
<span v-else>MP3</span>
|
<span v-else>MP3</span>
|
||||||
• {{ track.bitrate }}
|
• {{ track.bitrate }}
|
||||||
</div>
|
</div>
|
||||||
<div class="title ellip cap-first">{{ props.track.title }}</div>
|
<div class="title ellip">{{ props.track.title }}</div>
|
||||||
<div class="separator no-border"></div>
|
<div class="separator no-border"></div>
|
||||||
<div class="artists ellip cap-first" v-if="props.track.artists[0] !== ''">
|
<div class="artists ellip" 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"
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { putCommas } from "../../composables/perks";
|
import { putCommas } from "../../composables/perks";
|
||||||
import { Track } from "../../interfaces";
|
|
||||||
import { paths } from "../../config";
|
import { paths } from "../../config";
|
||||||
|
import { Track } from "../../interfaces";
|
||||||
const imguri = paths.images.thumb;
|
const imguri = paths.images.thumb;
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
@@ -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 cap-first">
|
<div class="name">
|
||||||
<div id="to">
|
<div id="to">
|
||||||
{{ from.text }}
|
{{ from.text }}
|
||||||
</div>
|
</div>
|
||||||
@@ -13,15 +13,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
|
||||||
fromFolder,
|
|
||||||
fromAlbum,
|
|
||||||
fromPlaylist,
|
|
||||||
fromSearch,
|
|
||||||
} from "@/interfaces";
|
|
||||||
import { FromOptions } from "@/composables/enums";
|
import { FromOptions } from "@/composables/enums";
|
||||||
import { useRouter } from "vue-router";
|
import {
|
||||||
|
fromAlbum, fromFolder, fromPlaylist,
|
||||||
|
fromSearch
|
||||||
|
} from "@/interfaces";
|
||||||
import { computed } from "@vue/reactivity";
|
import { computed } from "@vue/reactivity";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
from: fromFolder | fromAlbum | fromPlaylist | fromSearch;
|
from: fromFolder | fromAlbum | fromPlaylist | fromSearch;
|
||||||
|
|||||||
@@ -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 cap-first"
|
class="tab"
|
||||||
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)"
|
||||||
|
|||||||
@@ -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 cap-first">{{ option.label }}</div>
|
<div class="label ellip">{{ 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 cap-first">
|
<div class="label ellip">
|
||||||
{{ child.label }}
|
{{ child.label }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -91,6 +91,10 @@ const context = useContextStore();
|
|||||||
background-color: $context;
|
background-color: $context;
|
||||||
transform: scale(0);
|
transform: scale(0);
|
||||||
transform-origin: top left;
|
transform-origin: top left;
|
||||||
|
|
||||||
|
.context-item {
|
||||||
|
padding: $small 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}"
|
}"
|
||||||
></div>
|
></div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="name ellip cap-first">{{ props.playlist.name }}</div>
|
<div class="name ellip">{{ 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"
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Playlist } from "../../interfaces";
|
|
||||||
import { paths } from "../../config";
|
import { paths } from "../../config";
|
||||||
|
import { Playlist } from "../../interfaces";
|
||||||
|
|
||||||
const imguri = paths.images.playlist;
|
const imguri = paths.images.playlist;
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,12 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div @click="emitUpdate(track)">
|
<div @click="emitUpdate(track)">
|
||||||
<span class="ellip title cap-first">{{ track.title }}</span>
|
<div class="title ellip">
|
||||||
|
{{ track.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="song-artists cap-first">
|
</div>
|
||||||
|
<div class="song-artists">
|
||||||
<div class="ellip" v-if="track.artists[0] !== ''">
|
<div class="ellip" v-if="track.artists[0] !== ''">
|
||||||
<span
|
<span
|
||||||
class="artist"
|
class="artist"
|
||||||
@@ -44,7 +46,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<router-link
|
<router-link
|
||||||
class="song-album ellip cap-first"
|
class="song-album ellip"
|
||||||
:to="{
|
:to="{
|
||||||
name: 'AlbumView',
|
name: 'AlbumView',
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -23,11 +23,11 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<div class="title ellip cap-first">
|
<div class="title ellip">
|
||||||
{{ props.track.title }}
|
{{ props.track.title }}
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="artist ellip cap-first">
|
<div class="artist ellip">
|
||||||
<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>
|
||||||
@@ -37,11 +37,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
|
||||||
import { ContextSrc } from "@/composables/enums";
|
import { ContextSrc } from "@/composables/enums";
|
||||||
import { putCommas } from "@/composables/perks";
|
import { putCommas } from "@/composables/perks";
|
||||||
import trackContext from "@/contexts/track_context";
|
import trackContext from "@/contexts/track_context";
|
||||||
import { Track } from "@/interfaces";
|
import { Track } from "@/interfaces";
|
||||||
|
import { ref } from "vue";
|
||||||
|
|
||||||
import { paths } from "@/config";
|
import { paths } from "@/config";
|
||||||
import useContextStore from "@/stores/context";
|
import useContextStore from "@/stores/context";
|
||||||
|
|||||||
Reference in New Issue
Block a user