updates to context menu
This commit is contained in:
parent
549939e109
commit
b19834656a
4 changed files with 20 additions and 10 deletions
|
@ -2806,7 +2806,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
background: #000000a3;
|
background: rgb(0 0 0 / 32%);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -2826,6 +2826,12 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
border: 0;
|
border: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
.sidebar-icon>.svg-icon {
|
||||||
|
--color: var(--keyColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--selected);
|
background: var(--selected);
|
||||||
}
|
}
|
||||||
|
@ -2838,13 +2844,12 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
||||||
.menu-panel-body {
|
.menu-panel-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
background: #585858ba;
|
background: rgb(38 38 38);
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
box-shadow: var(--ciderShadow-Generic);
|
box-shadow: var(--ciderShadow-Generic);
|
||||||
border-radius: var(--mediaItemRadius);
|
border-radius: var(--mediaItemRadius);
|
||||||
backdrop-filter: blur(16px) saturate(180%);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
|
|
|
@ -268,8 +268,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "./assets/feather/unheart.svg",
|
"icon": "./assets/feather/heart.svg",
|
||||||
"id": "unlove",
|
"id": "unlove",
|
||||||
|
"active": true,
|
||||||
"name": "Unlove",
|
"name": "Unlove",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"action": function () {
|
"action": function () {
|
||||||
|
@ -287,9 +288,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "./assets/feather/x-circle.svg",
|
"icon": "./assets/feather/thumbs-down.svg",
|
||||||
"id": "undo_dislike",
|
"id": "undo_dislike",
|
||||||
"name": "Undo dislike",
|
"name": "Undo dislike",
|
||||||
|
"active": true,
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"action": function () {
|
"action": function () {
|
||||||
app.unlove(self.item)
|
app.unlove(self.item)
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="menu-header-body" v-if="Object.keys(content.headerItems).length != 0">
|
<div class="menu-header-body" v-if="Object.keys(content.headerItems).length != 0">
|
||||||
<template v-for="item in content.headerItems">
|
<template v-for="item in content.headerItems">
|
||||||
<button class="menu-option-header" :title="item.name" v-if="canDisplay(item)" :style="getStyle(item)" @click="action(item)">
|
<button class="menu-option-header" :class="getClasses(item)" :title="item.name" v-if="canDisplay(item)" :style="getStyle(item)" @click="action(item)">
|
||||||
<div class="sidebar-icon" style="margin: 0;" v-if="item.icon">
|
<div class="sidebar-icon" style="margin: 0;" v-if="item.icon">
|
||||||
<div class="svg-icon" :style="{'--url': 'url(' + item.icon + ')'}"></div>
|
<div class="svg-icon" :style="{'--url': 'url(' + item.icon + ')'}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,6 +47,11 @@
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getClasses(item) {
|
||||||
|
if(item["active"]) {
|
||||||
|
return "active";
|
||||||
|
}
|
||||||
|
},
|
||||||
getStyle(item) {
|
getStyle(item) {
|
||||||
if(item["disabled"]) {
|
if(item["disabled"]) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -538,10 +538,8 @@
|
||||||
<cider-queue ref="queue" v-if="drawer.panel == 'queue'"></cider-queue>
|
<cider-queue ref="queue" v-if="drawer.panel == 'queue'"></cider-queue>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="modal">
|
|
||||||
<cider-menu-panel v-if="menuPanel.visible">
|
<cider-menu-panel v-if="menuPanel.visible">
|
||||||
</cider-menu-panel>
|
</cider-menu-panel>
|
||||||
</transition>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue