@deriv-web-design/ui 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4825,6 +4825,7 @@
4825
4825
  "ctaHref",
4826
4826
  "languageLabel",
4827
4827
  "languageItems",
4828
+ "languageRows",
4828
4829
  "activeLanguageCode"
4829
4830
  ],
4830
4831
  "variants": [
@@ -4900,6 +4901,11 @@
4900
4901
  "maxLength": 10,
4901
4902
  "description": "Current language code shown in the switcher, e.g. \"EN\". No default — omit it and the language switcher is not rendered at all."
4902
4903
  },
4904
+ "languageRows": {
4905
+ "type": "number",
4906
+ "required": false,
4907
+ "description": "Max items per column in the language dropdown. When set, columns are derived (ceil(items / languageRows)); when omitted, the existing 3-column layout is unchanged."
4908
+ },
4903
4909
  "loginHref": {
4904
4910
  "type": "url",
4905
4911
  "required": false,
@@ -2929,6 +2929,11 @@
2929
2929
  "required": false,
2930
2930
  "description": "Language label rendered next to the globe icon, e.g. \"EN\""
2931
2931
  },
2932
+ "languageRows": {
2933
+ "type": "number",
2934
+ "required": false,
2935
+ "description": "Max items per column in the language dropdown. When set (integer ≥ 1), the number of columns is derived (`ceil(items / languageRows)`); when omitted, the existing 3-column layout is unchanged."
2936
+ },
2932
2937
  "loginHref": {
2933
2938
  "type": "string",
2934
2939
  "required": false,
package/dist/index.css CHANGED
@@ -4739,8 +4739,12 @@
4739
4739
  .navbar__lang-dropdown {
4740
4740
  position: absolute;
4741
4741
  top: calc(100% + var(--spacing-8));
4742
- left: calc(50% - 352px);
4743
- width: 704px;
4742
+ left: 0;
4743
+ right: 0;
4744
+ margin-inline: auto;
4745
+ width: max-content;
4746
+ min-width: 704px;
4747
+ max-width: calc(100vw - 2 * var(--spacing-24));
4744
4748
  background-color: var(--color-slate-50);
4745
4749
  border: 1px solid var(--color-slate-100);
4746
4750
  border-radius: var(--navbar-dropdown-radius);
@@ -4752,7 +4756,7 @@
4752
4756
  }
4753
4757
  .navbar__lang-dropdown-grid {
4754
4758
  display: grid;
4755
- grid-template-columns: repeat(3, 1fr);
4759
+ grid-template-columns: repeat(var(--lang-cols, 3), 1fr);
4756
4760
  grid-auto-flow: column;
4757
4761
  grid-template-rows: repeat(var(--lang-rows, 7), auto);
4758
4762
  gap: 0;