mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +00:00
minor styling changes
This commit is contained in:
parent
c225b04aad
commit
cb4f6e8fa3
@ -3,7 +3,7 @@ import { TopicItemWrapper } from './TopicItem.styled';
|
||||
import ReactResizeDetector from 'react-resize-detector';
|
||||
import { useTopicItem } from './useTopicItem.hook';
|
||||
import { Avatar } from 'avatar/Avatar';
|
||||
import { BranchesOutlined } from '@ant-design/icons';
|
||||
import { CommentOutlined } from '@ant-design/icons';
|
||||
|
||||
export function TopicItem({ topic }) {
|
||||
|
||||
@ -24,7 +24,7 @@ export function TopicItem({ topic }) {
|
||||
<div class={nameClass}>{ name }</div>
|
||||
<div>{ getTime(offset) }</div>
|
||||
<div class="comments">
|
||||
<BranchesOutlined rotate="90" />
|
||||
<CommentOutlined />
|
||||
</div>
|
||||
</div>
|
||||
<div class="message">{ state.message }</div>
|
||||
@ -34,6 +34,9 @@ export function TopicItem({ topic }) {
|
||||
}
|
||||
|
||||
function getTime(offset) {
|
||||
if (offset < 1) {
|
||||
return ''
|
||||
}
|
||||
if (offset < 60) {
|
||||
return Math.floor(offset) + "s";
|
||||
}
|
||||
|
@ -6,9 +6,6 @@ export const TopicItemWrapper = styled.div`
|
||||
width: 100%;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
&:hover {
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
height: 32px;
|
||||
|
@ -17,6 +17,9 @@ export const CardItem = styled(List.Item)`
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
background-color: #f0f5e0;
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
|
@ -54,7 +54,7 @@ export const RegistryItem = styled(List.Item)`
|
||||
padding-bottom: 4px;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
background-color: #eeeeee;
|
||||
background-color: #f0f5e0;
|
||||
}
|
||||
`;
|
||||
|
||||
|
@ -12,7 +12,7 @@ export const ChannelItemWrapper = styled(List.Item)`
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
&:hover {
|
||||
background-color: #eeeeee;
|
||||
background-color: #f0f5e0;
|
||||
}
|
||||
`;
|
||||
|
||||
|
@ -30,6 +30,6 @@ export const VirtualItem = styled.div`
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
&:hover {
|
||||
background-color: #eeeeee;
|
||||
background-color: #f0f5e0;
|
||||
}
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user