Skip to content

Commit 3005c5c

Browse files
committed
style: cleanup
1 parent 59eb5d2 commit 3005c5c

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

ui/src/design-system/components/toggle-group/toggle-group.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
display: flex;
1616
align-items: center;
1717
justify-content: center;
18-
aspect-ratio: 1;
18+
width: 28px;
1919
height: 100%;
2020
outline: none;
2121

ui/src/design-system/components/tooltip/basic-tooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export const BasicTooltip = ({
2525
{children}
2626
</Tooltip.Trigger>
2727
<Tooltip.Content side="bottom">
28-
<span className="block">{content}</span>
28+
<span className="block text-center whitespace-break-spaces">
29+
{content}
30+
</span>
2931
</Tooltip.Content>
3032
</Tooltip.Root>
3133
</Tooltip.Provider>

ui/src/pages/algorithm-details/algorithm-details-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const AlgorithmDetailsContent = ({ algorithm }: { algorithm: Algorithm }) => (
106106
target="_blank"
107107
>
108108
<span>{translate(STRING.FIELD_LABEL_ALGORITHM_URI)}</span>
109-
<ExternalLinkIcon className="w-4 h-4 ml-2" />
109+
<ExternalLinkIcon className="w-4 h-4" />
110110
</a>
111111
)}
112112
{algorithm.categoryMapURI && (
@@ -120,7 +120,7 @@ const AlgorithmDetailsContent = ({ algorithm }: { algorithm: Algorithm }) => (
120120
target="_blank"
121121
>
122122
<span>{translate(STRING.FIELD_LABEL_CATEGORY_MAP_DETAILS)}</span>
123-
<ExternalLinkIcon className="w-4 h-4 ml-2" />
123+
<ExternalLinkIcon className="w-4 h-4" />
124124
</a>
125125
)}
126126
</div>

ui/src/pages/occurrences/occurrence-columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const TaxonCell = ({
186186

187187
return (
188188
<div id={id} className={styles.taxonCell}>
189-
<BasicTableCell>
189+
<BasicTableCell style={{ minWidth: '320px' }}>
190190
<div className={styles.taxonCellContent}>
191191
<Link to={detailsRoute}>
192192
<TaxonDetails compact taxon={item.determinationTaxon} />

ui/src/pages/species-details/species-details.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,19 @@ export const SpeciesDetails = ({ species }: { species: Species }) => {
7474
/>
7575
</InfoBlockField>
7676
<InfoBlockField label={translate(STRING.FIELD_LABEL_BEST_SCORE)}>
77-
<DeterminationScore
78-
score={species.score}
79-
scoreLabel={species.scoreLabel}
80-
tooltip={
81-
species.score
82-
? translate(STRING.MACHINE_PREDICTION_SCORE, {
83-
score: `${species.score}`,
84-
})
85-
: undefined
86-
}
87-
/>
77+
<div>
78+
<DeterminationScore
79+
score={species.score}
80+
scoreLabel={species.scoreLabel}
81+
tooltip={
82+
species.score
83+
? translate(STRING.MACHINE_PREDICTION_SCORE, {
84+
score: `${species.score}`,
85+
})
86+
: undefined
87+
}
88+
/>
89+
</div>
8890
</InfoBlockField>
8991
<InfoBlockField
9092
className="no-print"

ui/src/pages/species/species-columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const columns: (projectId: string) => TableColumn<Species>[] = (
4242
keepSearchParams: true,
4343
})}
4444
>
45-
<BasicTableCell>
45+
<BasicTableCell style={{ minWidth: '320px' }}>
4646
<TaxonDetails compact taxon={item} />
4747
</BasicTableCell>
4848
</Link>

0 commit comments

Comments
 (0)