mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #169 from omnivore-app/label-tweaks
Add labels to library items query, improve design of labels
This commit is contained in:
commit
bb6fbe8d9a
2 changed files with 4 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ export function Label(props: LabelProps): JSX.Element {
|
|||
borderRadius: '32px',
|
||||
color: props.color,
|
||||
padding: '4px 8px 4px 8px',
|
||||
border: `1px solid ${props.color}`,
|
||||
backgroundColor: `rgba(${color[0]}, ${color[1]}, ${color[2]}, 0.3)`,
|
||||
border: `1px solid rgba(${color[0]}, ${color[1]}, ${color[2]}, 0.40)`,
|
||||
backgroundColor: `rgba(${color[0]}, ${color[1]}, ${color[2]}, 0.20)`,
|
||||
}}
|
||||
>
|
||||
{props.text}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { setLinkArchivedMutation } from '../mutations/setLinkArchivedMutation'
|
|||
import { deleteLinkMutation } from '../mutations/deleteLinkMutation'
|
||||
import { articleReadingProgressMutation } from '../mutations/articleReadingProgressMutation'
|
||||
import { labelFragment } from '../fragments/labelFragment'
|
||||
import { Label } from './useGetLabelsQuery'
|
||||
|
||||
export type LibraryItemsQueryInput = {
|
||||
limit: number
|
||||
|
|
@ -54,6 +55,7 @@ export type LibraryItemNode = ArticleFragmentData & {
|
|||
hasContent: boolean
|
||||
originalArticleUrl: string
|
||||
sharedComment?: string
|
||||
labels?: Label[]
|
||||
}
|
||||
|
||||
export type PageInfo = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue