mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Don't show icon on xs screens
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { Localized } from "fluent-react/compat";
|
||||
import React from "react";
|
||||
import { oncePerFrame } from "talk-common/utils";
|
||||
import { Button, ButtonIcon, ClickOutside, Popover } from "talk-ui/components";
|
||||
import {
|
||||
Button,
|
||||
ButtonIcon,
|
||||
ClickOutside,
|
||||
MatchMedia,
|
||||
Popover,
|
||||
} from "talk-ui/components";
|
||||
|
||||
import * as styles from "./PermalinkButton.css";
|
||||
import PermalinkPopover from "./PermalinkPopover";
|
||||
@@ -51,7 +57,9 @@ class Permalink extends React.Component<PermalinkProps> {
|
||||
active={visible}
|
||||
size="small"
|
||||
>
|
||||
<ButtonIcon>share</ButtonIcon>
|
||||
<MatchMedia minWidth="xs">
|
||||
<ButtonIcon>share</ButtonIcon>
|
||||
</MatchMedia>
|
||||
<Localized id="comments-permalink-share">
|
||||
<span>Share</span>
|
||||
</Localized>
|
||||
|
||||
Reference in New Issue
Block a user