Styling improvements and responsibility

This commit is contained in:
Chi Vinh Le
2018-08-04 00:16:00 +02:00
parent 66d8244acc
commit 0a5e6f7250
3 changed files with 8 additions and 1 deletions
@@ -0,0 +1,5 @@
.popover {
width: 350px;
max-width: 80%;
margin-bottom: calc(0.5 * var(--spacing-unit));
}
@@ -3,6 +3,7 @@ import React from "react";
import { oncePerFrame } from "talk-common/utils";
import { Button, ButtonIcon, ClickOutside, Popover } from "talk-ui/components";
import * as styles from "./PermalinkButton.css";
import PermalinkPopover from "./PermalinkPopover";
interface PermalinkProps {
@@ -27,6 +28,7 @@ class Permalink extends React.Component<PermalinkProps> {
id={popoverID}
placement="top-start"
description="A dialog showing a permalink to the comment"
className={styles.popover}
body={({ toggleVisibility }) => (
<ClickOutside
onClickOutside={() =>
@@ -1,5 +1,5 @@
.root {
width: 300px;
width: 100%;
}
.textField {