mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: added hover event to overline + removed context menu (#393)
This commit is contained in:
@@ -5,6 +5,7 @@ import { Text } from "preact-i18n";
|
||||
import { Children } from "../../types/Preact";
|
||||
|
||||
type Props = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children" | "as"> & {
|
||||
hoverEnabled?: boolean;
|
||||
error?: string;
|
||||
block?: boolean;
|
||||
spaced?: boolean;
|
||||
@@ -15,6 +16,18 @@ type Props = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children" | "as"> & {
|
||||
|
||||
const OverlineBase = styled.div<Omit<Props, "children" | "error">>`
|
||||
display: inline;
|
||||
transition: 0.2s ease filter;
|
||||
|
||||
${(props) =>
|
||||
props.hoverEnabled &&
|
||||
css`
|
||||
&:hover {
|
||||
filter: brightness(1.2);
|
||||
cursor: pointer;
|
||||
|
||||
transition: 0.2s ease filter;
|
||||
}
|
||||
`}
|
||||
|
||||
${(props) =>
|
||||
!props.noMargin &&
|
||||
|
||||
Reference in New Issue
Block a user