diff --git a/client/coral-admin/src/routes/Community/components/FlaggedUser.css b/client/coral-admin/src/routes/Community/components/FlaggedUser.css index d5648fa61..615b00e21 100644 --- a/client/coral-admin/src/routes/Community/components/FlaggedUser.css +++ b/client/coral-admin/src/routes/Community/components/FlaggedUser.css @@ -1,4 +1,7 @@ -.listItem { +@custom-media --big-viewport (min-width: 780px); + +.root { + composes: mdl-shadow--2dp mdl-card from global; border-bottom: 1px solid #e0e0e0; font-size: 18px; width: 100%; @@ -15,3 +18,87 @@ } } +.rootSelected { + composes: mdl-shadow--16dp from global; +} + +.container { + display: block; + padding: 0 14px; + min-height: 180px; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; +} + +.author { + display: flex; + justify-content: flex-start; +} + +.body { + display: flex; + align-items: center; + justify-content: space-between; +} + +.flaggedByCount { + display: block; + text-align: left; + margin-top: 5px; +} + +.flagIcon { + font-size: 14px; + margin-right: 10px; +} + +.flaggedBy { + display: inline; + padding: 3px; + font-size: 14px; + margin-left: 5px; +} + +.flaggedByLabel { + font-weight: 600; + font-size: 14px; +} + +.flaggedReasons { + margin-left: 24px; + margin-top: 10px; +} + +.flaggedByReason { + font-size: 1tpx; + margin: 0px; + line-height: 1.4; +} + + +@media (--big-viewport) { + .root { + border: 1px solid #e0e0e0; + margin-bottom: 30px; + + &:last-child { + border-bottom: 1px solid #e0e0e0; + } + } + + &.rootSelected { + border: 2px solid #333; + } +} + +.button { + composes: buttonReset from 'coral-framework/styles/reset.css'; + vertical-align: text-bottom; + &:hover { + background-color: #E0E0E0; + } +} diff --git a/client/coral-admin/src/routes/Community/components/FlaggedUser.js b/client/coral-admin/src/routes/Community/components/FlaggedUser.js index f77b95b90..1e36c45a2 100644 --- a/client/coral-admin/src/routes/Community/components/FlaggedUser.js +++ b/client/coral-admin/src/routes/Community/components/FlaggedUser.js @@ -1,11 +1,12 @@ import React from 'react'; -import styles from './styles.css'; +import styles from './FlaggedUser.css'; import ActionButton from './ActionButton'; import {username} from 'talk-plugin-flags/helpers/flagReasons'; import ActionsMenu from 'coral-admin/src/components/ActionsMenu'; import ActionsMenuItem from 'coral-admin/src/components/ActionsMenuItem'; +import cn from 'classnames'; import t from 'coral-framework/services/i18n'; const shortReasons = { @@ -36,27 +37,33 @@ class User extends React.Component { user, modActionButtons, viewUserDetail, - index, selected, - isActive, - hideActive, approveUser, showRejectUsernameDialog, me, + className, } = this.props; return ( -