diff --git a/lemmy-translations b/lemmy-translations index a2f59fcb..c9700569 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit a2f59fcbf7529a1f7dd5cda894381ef2000b9ef5 +Subproject commit c97005696d132acf2cad3506df4f3c2256142349 diff --git a/package.json b/package.json index 650990c0..9d144465 100644 --- a/package.json +++ b/package.json @@ -38,16 +38,16 @@ "express": "~4.18.1", "html-to-text": "^8.2.1", "i18next": "^21.8.14", - "inferno": "^8.0.3", - "inferno-create-element": "^8.0.3", + "inferno": "^8.0.5", + "inferno-create-element": "^8.0.5", "inferno-helmet": "^5.2.1", - "inferno-hydrate": "^8.0.3", + "inferno-hydrate": "^8.0.5", "inferno-i18next-dess": "0.0.2", - "inferno-router": "^8.0.3", - "inferno-server": "^8.0.3", + "inferno-router": "^8.0.5", + "inferno-server": "^8.0.5", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", - "lemmy-js-client": "0.17.0-rc.56", + "lemmy-js-client": "0.17.0-rc.57", "markdown-it": "^13.0.1", "markdown-it-container": "^3.0.0", "markdown-it-footnote": "^3.0.3", diff --git a/src/assets/css/main.css b/src/assets/css/main.css index a2a2a65c..98e98d26 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -385,4 +385,12 @@ br.big { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; -} \ No newline at end of file +} + +.lang-select-action { + width: 100px; +} + +.lang-select-action:focus { + width: auto; +} diff --git a/src/shared/components/common/language-select.tsx b/src/shared/components/common/language-select.tsx index c354a834..c7da2f05 100644 --- a/src/shared/components/common/language-select.tsx +++ b/src/shared/components/common/language-select.tsx @@ -15,6 +15,7 @@ interface LanguageSelectProps { onChange(val: number[]): any; showAll?: boolean; showSite?: boolean; + iconVersion?: boolean; } export class LanguageSelect extends Component { @@ -46,16 +47,9 @@ export class LanguageSelect extends Component { } render() { - let selectedLangs = this.props.selectedLanguageIds; - let filteredLangs = selectableLanguages( - this.props.allLanguages, - this.props.siteLanguages, - this.props.showAll, - this.props.showSite, - UserService.Instance.myUserInfo - ); - - return ( + return this.props.iconVersion ? ( + this.selectBtn + ) : (