forked from Mirrors/gomuks
web/timeline: add close button to mobile context menu
This commit is contained in:
parent
248a218eed
commit
b30025746d
2 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,7 @@ import ClientContext from "../../ClientContext.ts"
|
|||
import { RoomContextData } from "../../roomview/roomcontext.ts"
|
||||
import { usePrimaryItems } from "./usePrimaryItems.tsx"
|
||||
import { useSecondaryItems } from "./useSecondaryItems.tsx"
|
||||
import CloseIcon from "@/icons/close.svg?react"
|
||||
|
||||
interface BaseEventMenuProps {
|
||||
evt: MemDBEvent
|
||||
|
@ -62,5 +63,7 @@ export const EventFixedMenu = ({ evt, roomCtx }: BaseEventMenuProps) => {
|
|||
{primary}
|
||||
<div className="vertical-line"/>
|
||||
{secondary}
|
||||
<div className="vertical-line"/>
|
||||
<button className="close"><CloseIcon/></button>
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -26,6 +26,12 @@ div.event-fixed-menu {
|
|||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
|
||||
> div.vertical-line {
|
||||
width: 1px;
|
||||
flex-shrink: 0;
|
||||
background-color: var(--border-color);
|
||||
}
|
||||
|
||||
> button {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
|
|
Loading…
Add table
Reference in a new issue