Make context menu look nicer and handle rendering using v-if #58
2 changed files with 19 additions and 4 deletions
|
@ -34,10 +34,24 @@ function runCallback(item: ContextMenuItem) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 10dvw;
|
width: 10rem;
|
||||||
border: .15rem solid cyan;
|
border: .1rem solid var(--reply-text-color);
|
||||||
background-color: var(--background-color);
|
background-color: var(--sidebar-highlighted-background-color);
|
||||||
text-align: center;
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.context-menu-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 2rem;
|
||||||
|
width: 100%;
|
||||||
|
color: var(--text-color);
|
||||||
|
background-color: var(--sidebar-highlighted-background-color);
|
||||||
|
border: none;
|
||||||
|
text-align: left;
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.context-menu-item:hover {
|
.context-menu-item:hover {
|
||||||
|
|
|
@ -101,6 +101,7 @@ export interface ModalProps {
|
||||||
|
|
||||||
export interface ContextMenuItem {
|
export interface ContextMenuItem {
|
||||||
name: string,
|
name: string,
|
||||||
|
icon?: string,
|
||||||
callback: (...args: any[]) => any;
|
callback: (...args: any[]) => any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue