@cloud-ru/uikit-product-site-article 1.2.4 → 1.2.5

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.2.5 (2026-04-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **SITE-11206:** fix article links padding on mobile devices ([c3507f2](https://github.com/cloud-ru-tech/uikit-product/commit/c3507f2ec5b4b9d5e3cb92bcd7da493f1cb6ff5e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 1.2.4 (2026-04-27)
7
18
 
8
19
 
@@ -24,5 +24,5 @@ function ArticleLinks(props) {
24
24
  size: 'l',
25
25
  };
26
26
  }, [layoutType]);
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.articleLinks, children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ className: styles_module_scss_1.default.title }, typographyProps, { tag: 'div', children: "\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435" })), (0, jsx_runtime_1.jsx)("ul", { className: styles_module_scss_1.default.list, "data-test-id": 'article-links', children: links.map(link => ((0, jsx_runtime_1.jsx)("li", { className: styles_module_scss_1.default.listItem, children: (0, jsx_runtime_1.jsx)("a", { className: styles_module_scss_1.default.link, href: `#${link.id}`, onClick: e => { var _a; return (_a = link.onClick) === null || _a === void 0 ? void 0 : _a.call(link, e); }, children: (0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyL, { children: link.text }) }) }, link.id))) })] }));
27
+ return ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.articleLinks, "data-layout-type": layoutType, children: [(0, jsx_runtime_1.jsx)(typography_1.Typography, Object.assign({ className: styles_module_scss_1.default.title }, typographyProps, { tag: 'div', children: "\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435" })), (0, jsx_runtime_1.jsx)("ul", { className: styles_module_scss_1.default.list, "data-test-id": 'article-links', children: links.map(link => ((0, jsx_runtime_1.jsx)("li", { className: styles_module_scss_1.default.listItem, children: (0, jsx_runtime_1.jsx)("a", { className: styles_module_scss_1.default.link, href: `#${link.id}`, onClick: e => { var _a; return (_a = link.onClick) === null || _a === void 0 ? void 0 : _a.call(link, e); }, children: (0, jsx_runtime_1.jsx)(typography_1.Typography.SansBodyL, { children: link.text }) }) }, link.id))) })] }));
28
28
  }
@@ -3,6 +3,9 @@
3
3
  padding:24px;
4
4
  border:var(--border-width-general-xs, 1px) var(--border-styles-solid, solid) var(--sys-neutral-decor-default, #dde0ea);
5
5
  }
6
+ .articleLinks[data-layout-type=mobile]{
7
+ padding:16px;
8
+ }
6
9
 
7
10
  .title{
8
11
  color:var(--sys-neutral-text-main, #41424e);
@@ -18,5 +18,5 @@ export function ArticleLinks(props) {
18
18
  size: 'l',
19
19
  };
20
20
  }, [layoutType]);
21
- return (_jsxs("div", { className: styles.articleLinks, children: [_jsx(Typography, Object.assign({ className: styles.title }, typographyProps, { tag: 'div', children: "\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435" })), _jsx("ul", { className: styles.list, "data-test-id": 'article-links', children: links.map(link => (_jsx("li", { className: styles.listItem, children: _jsx("a", { className: styles.link, href: `#${link.id}`, onClick: e => { var _a; return (_a = link.onClick) === null || _a === void 0 ? void 0 : _a.call(link, e); }, children: _jsx(Typography.SansBodyL, { children: link.text }) }) }, link.id))) })] }));
21
+ return (_jsxs("div", { className: styles.articleLinks, "data-layout-type": layoutType, children: [_jsx(Typography, Object.assign({ className: styles.title }, typographyProps, { tag: 'div', children: "\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435" })), _jsx("ul", { className: styles.list, "data-test-id": 'article-links', children: links.map(link => (_jsx("li", { className: styles.listItem, children: _jsx("a", { className: styles.link, href: `#${link.id}`, onClick: e => { var _a; return (_a = link.onClick) === null || _a === void 0 ? void 0 : _a.call(link, e); }, children: _jsx(Typography.SansBodyL, { children: link.text }) }) }, link.id))) })] }));
22
22
  }
@@ -3,6 +3,9 @@
3
3
  padding:24px;
4
4
  border:var(--border-width-general-xs, 1px) var(--border-styles-solid, solid) var(--sys-neutral-decor-default, #dde0ea);
5
5
  }
6
+ .articleLinks[data-layout-type=mobile]{
7
+ padding:16px;
8
+ }
6
9
 
7
10
  .title{
8
11
  color:var(--sys-neutral-text-main, #41424e);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-article",
3
3
  "title": "Site Article",
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -44,5 +44,5 @@
44
44
  "@snack-uikit/utils": "4.0.0",
45
45
  "classnames": "2.5.1"
46
46
  },
47
- "gitHead": "0b83f75432a23df3f161cc42e895c1f2f1859286"
47
+ "gitHead": "a076f2dd6ecdbb27e0b4fcb358168a13e10a45c5"
48
48
  }
@@ -35,7 +35,7 @@ export function ArticleLinks(props: ArticleLinksProps) {
35
35
  }, [layoutType]);
36
36
 
37
37
  return (
38
- <div className={styles.articleLinks}>
38
+ <div className={styles.articleLinks} data-layout-type={layoutType}>
39
39
  <Typography className={styles.title} {...typographyProps} tag='div'>
40
40
  Содержание
41
41
  </Typography>
@@ -5,6 +5,10 @@
5
5
 
6
6
  padding: 24px;
7
7
  border: var.$border-width-general-xs var.$border-styles-solid var.$sys-neutral-decor-default;
8
+
9
+ &[data-layout-type='mobile'] {
10
+ padding: 16px;
11
+ }
8
12
  }
9
13
 
10
14
  .title {