mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
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 { RoomContextData } from "../../roomview/roomcontext.ts"
|
||||||
import { usePrimaryItems } from "./usePrimaryItems.tsx"
|
import { usePrimaryItems } from "./usePrimaryItems.tsx"
|
||||||
import { useSecondaryItems } from "./useSecondaryItems.tsx"
|
import { useSecondaryItems } from "./useSecondaryItems.tsx"
|
||||||
|
import CloseIcon from "@/icons/close.svg?react"
|
||||||
|
|
||||||
interface BaseEventMenuProps {
|
interface BaseEventMenuProps {
|
||||||
evt: MemDBEvent
|
evt: MemDBEvent
|
||||||
|
@ -62,5 +63,7 @@ export const EventFixedMenu = ({ evt, roomCtx }: BaseEventMenuProps) => {
|
||||||
{primary}
|
{primary}
|
||||||
<div className="vertical-line"/>
|
<div className="vertical-line"/>
|
||||||
{secondary}
|
{secondary}
|
||||||
|
<div className="vertical-line"/>
|
||||||
|
<button className="close"><CloseIcon/></button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,12 @@ div.event-fixed-menu {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
|
||||||
|
> div.vertical-line {
|
||||||
|
width: 1px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background-color: var(--border-color);
|
||||||
|
}
|
||||||
|
|
||||||
> button {
|
> button {
|
||||||
width: 3rem;
|
width: 3rem;
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue