Skip to content

Commit

Permalink
Fix word space (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic16x authored Nov 30, 2024
1 parent 2a80e17 commit 066bc57
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interslavic",
"version": "1.25.0",
"version": "1.25.1",
"description": "Interslavic Dictionary",
"license": "MIT",
"author": {
Expand All @@ -27,8 +27,8 @@
"test:dictionary-update-shanshot": "cross-env NODE_ENV=production UPDATE_SNAPSHOT=false tsx -r tsconfig-paths/register ./src/services/dictionary-test"
},
"pre-commit": [
"lint:fix",
"stylelint:fix"
"lint",
"stylelint"
],
"dependencies": {
"@ag-grid-community/client-side-row-model": "25.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/ResultsCard/ResultsCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}

.ipa {
margin-left: 4px;
color: var(--muted-text-color);
font-weight: 500;
}
Expand Down Expand Up @@ -113,13 +114,12 @@
}

&__details {
margin-left: 8px;
margin-left: 4px;
color: var(--muted-text-color);
}

&__translate {
.results-card__details {
margin-left: 0;
font-weight: 500;
}
}
Expand Down Expand Up @@ -173,7 +173,7 @@
&__status {
padding: 0;
border: none;
margin: 0;
margin: 0 0 0 4px;
appearance: none;
background: none;

Expand Down
6 changes: 1 addition & 5 deletions src/components/ResultsCard/ResultsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,9 @@ export const ResultsCard =
{item.to !== 'isv' ? (
<Clipboard str={item.translate} />
) : renderOriginal(item, alphabets, caseQuestions)}
{'\u00A0'}
<WordStatus item={item} onClick={showTranslations}/>
{item.to === 'isv' && short && (
<>
&nbsp;
<span className="results-card__details">{item.details}</span>
</>
<span className="results-card__details">{item.details}</span>
)}
</div>
{!short && (
Expand Down

0 comments on commit 066bc57

Please sign in to comment.