Skip to content

Commit

Permalink
BASIRA #286 - Adjusting CSS of artwork titles
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Dec 20, 2024
1 parent 071c3ce commit 187914e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
9 changes: 7 additions & 2 deletions client/src/components/ArtworkTitles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.artwork-titles .icon.white {
color: #FFFFFF;
.artwork-titles.list > .item > .content > .list-header {
display: flex;
align-items: center;
}

.artwork-titles.list > .item > .content > .list-header > .icon {
margin-left: 0.5em;
}

.artwork-titles.list > .item > .content > .description {
Expand Down
22 changes: 15 additions & 7 deletions client/src/components/ArtworkTitles.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @flow

import React from 'react';
import { List } from 'semantic-ui-react';
import { Header, Icon, List } from 'semantic-ui-react';
import _ from 'underscore';
import Qualifiables from '../utils/Qualifiables';
import type { ArtworkTitle } from '../types/ArtworkTitle';
import Qualifiables from '../utils/Qualifiables';
import './ArtworkTitles.css';

type Props = {
Expand All @@ -24,14 +24,22 @@ const ArtworkTitles = (props: Props) => {
>
{ _.map(props.items, (item) => (
<List.Item>
<List.Icon
color={item.primary ? 'green' : 'white'}
name='check circle'
/>
<List.Content>
<List.Header
className='list-header'
content={item.title}
/>
>
<Header
content={item.title}
size='small'
/>
{ item.primary && (
<Icon
color='green'
name='check circle'
/>
)}
</List.Header>
<List.Description
content={Qualifiables.getValueListValue(item, 'Artwork', 'Title Type')}
/>
Expand Down

0 comments on commit 187914e

Please sign in to comment.