@jetbrains/kotlin-web-site-ui 4.0.0 → 4.0.1

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.
@@ -44,7 +44,9 @@ const DropdownMenu = ({
44
44
  }, React__default.createElement("button", {
45
45
  className: classNames(styles.button, textCn('rs-text-2')),
46
46
  "aria-haspopup": "true"
47
- }, React__default.createElement("span", null, activeItem.title), React__default.createElement(SvgArrowDropdownIcon, {
47
+ }, React__default.createElement("span", {
48
+ className: styles.buttonText
49
+ }, activeItem.title), React__default.createElement(SvgArrowDropdownIcon, {
48
50
  className: styles.icon
49
51
  })), React__default.createElement("nav", {
50
52
  className: classNames(styles.dropdownList, {
@@ -1,6 +1,7 @@
1
1
  var styles = {
2
2
  "dropdownMenu": "ktl-dropdown-menu-module_dropdown-menu_tq2uU",
3
3
  "button": "ktl-dropdown-menu-module_button_OYsuv",
4
+ "buttonText": "ktl-dropdown-menu-module_button-text_SJmh-",
4
5
  "icon": "ktl-dropdown-menu-module_icon_GGhMI",
5
6
  "dropdownList": "ktl-dropdown-menu-module_dropdown-list_Ylkvt",
6
7
  "fadein": "ktl-dropdown-menu-module_fadein_MySnq",
@@ -51,6 +51,7 @@
51
51
  height: 48px;
52
52
  padding: 0 16px;
53
53
  grid-gap: 16px;
54
+ grid-template-columns: 1fr auto;
54
55
  }
55
56
 
56
57
  .ktl-top-menu-module_logo_CNH2W {
@@ -105,12 +106,15 @@
105
106
  height: 100%;
106
107
  justify-self: flex-start;
107
108
  white-space: nowrap;
109
+ min-width: 0;
110
+ max-width: 100%;
108
111
  }
109
112
 
110
113
  .ktl-dropdown-menu-module_button_OYsuv {
111
114
  border: none;
112
115
  background: none;
113
116
  height: 100%;
117
+ max-width: 100%;
114
118
  padding: 0;
115
119
  margin: 0;
116
120
  display: flex;
@@ -119,11 +123,18 @@
119
123
  cursor: pointer;
120
124
  }
121
125
 
126
+ .ktl-dropdown-menu-module_button-text_SJmh- {
127
+ overflow: hidden;
128
+ text-overflow: ellipsis;
129
+ flex: 0 1 auto;
130
+ }
131
+
122
132
  .ktl-dropdown-menu-module_icon_GGhMI {
123
133
  width: 12px;
124
134
  height: 6px;
125
135
  margin-left: 6px;
126
136
  transition: transform ease-in-out var(--ktl-transition-xfast);
137
+ flex: 0 0 auto;
127
138
  }
128
139
 
129
140
  .ktl-dropdown-menu-module_dropdown-list_Ylkvt {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [