Skip to content

Commit

Permalink
add fix for la/lat codes, add fix for clear short lat defs, fix toolt…
Browse files Browse the repository at this point in the history
…ip background bug
  • Loading branch information
irina060981 committed Dec 1, 2021
1 parent abf95c6 commit 9c50dc7
Show file tree
Hide file tree
Showing 12 changed files with 22,577 additions and 22,671 deletions.
45,218 changes: 22,560 additions & 22,658 deletions packages/components/dist/alpheios-components.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/dist/alpheios-components.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/dist/alpheios-components.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/dist/style/style-components-safari.css

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/dist/style/style-components.css

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

2 changes: 1 addition & 1 deletion packages/components/dist/style/style-components.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/components/dist/style/style-components.min.css

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions packages/components/src/lib/queries/lexical-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,12 @@ export default class LexicalQuery extends Query {

// if lexicon options are set for short definitions, we want to override any
// short definitions provided by the maAdapter
if (lexiconShortOpts.allow && lexiconShortOpts.allow.length > 0) {
if (!lexiconShortOpts.allow.includes('empty')) {
this.homonym.lexemes.forEach((l) => { l.meaning.clearShortDefs() })
}

if (lexiconShortOpts.allow && ((lexiconShortOpts.allow.length === 0) || !lexiconShortOpts.allow.includes('empty'))) {
this.homonym.lexemes.forEach((l) => { l.meaning.clearShortDefs() })
}

if (lexiconShortOpts.allow && lexiconShortOpts.allow.length > 0) {
if (this._source !== LexicalQuery.sources.WORDLIST) {
LexicalQuery.evt.HOMONYM_READY.pub(this.homonym)
} else {
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/lib/selection/media/html-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ export default class HTMLSelector extends MediaSelector {
if (langId === Constants.LANG_UNDEFINED) {
langId = LanguageModelFactory.getLanguageIdFromCode(this.defaultLanguageCode)
finalLangCode = this.defaultLanguageCode
} else {
const langModel = LanguageModelFactory.getLanguageModel(langId)
finalLangCode = langModel.languageCode
}

this.languageID = langId
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/vue/components/tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default {
color: var(--alpheios-text-color);
border: 1px solid var(--alpheios-border-color);
border-radius: uisize(10px);
z-index: 1;
z-index: 10;
opacity: 0;
transition: opacity .6s;
display: none;
Expand Down

0 comments on commit 9c50dc7

Please sign in to comment.