bfg-common 1.4.514 → 1.4.515

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.
@@ -1,26 +1,24 @@
1
1
  <template>
2
- <ui-widget>
3
- <div>
4
- <nuxt-link
5
- class="unit"
6
- :to="navigate"
7
- :title="props.item.navigateTo"
8
- :data-id="props.testId"
9
- @click="changeLastNavigation"
10
- @contextmenu="changeLastNavigation"
11
- >
12
- <span
13
- v-if="props.item.iconClassName"
14
- :class="['unit-icon', props.item.iconClassName]"
15
- />
16
- <span v-else-if="props.item.iconName" class="icon-2">
17
- <atoms-the-icon2 :name="props.item.iconName" width="34" height="34" />
18
- </span>
19
- <div class="unit-text" :title="props.item.text">
20
- {{ props.item.text }}
21
- </div>
22
- </nuxt-link>
23
- </div>
2
+ <ui-widget class="category-block-item">
3
+ <nuxt-link
4
+ class="unit"
5
+ :to="navigate"
6
+ :title="props.item.navigateTo"
7
+ :data-id="props.testId"
8
+ @click="changeLastNavigation"
9
+ @contextmenu="changeLastNavigation"
10
+ >
11
+ <span
12
+ v-if="props.item.iconClassName"
13
+ :class="['unit-icon', props.item.iconClassName]"
14
+ />
15
+ <span v-else-if="props.item.iconName" class="icon-2">
16
+ <atoms-the-icon2 :name="props.item.iconName" width="34" height="34" />
17
+ </span>
18
+ <div class="unit-text" :title="props.item.text">
19
+ {{ props.item.text }}
20
+ </div>
21
+ </nuxt-link>
24
22
  </ui-widget>
25
23
  </template>
26
24
  <script setup lang="ts">
@@ -41,6 +39,10 @@ const changeLastNavigation = (): void => {
41
39
  }
42
40
  </script>
43
41
  <style lang="scss" scoped>
42
+ .category-block-item {
43
+ max-width: 176px;
44
+ }
45
+
44
46
  .unit {
45
47
  display: flex;
46
48
  flex-direction: column;
@@ -3,7 +3,7 @@
3
3
  <span class="category__headline">
4
4
  {{ props.title }}
5
5
  </span>
6
- <div class="category-block">
6
+ <div class="category__block">
7
7
  <common-pages-shortcuts-block
8
8
  v-for="(item, key) in props.blockItems"
9
9
  :key="key"
@@ -23,6 +23,7 @@ const props = defineProps<{
23
23
  }>()
24
24
  </script>
25
25
  <style lang="scss" scoped>
26
+ @import 'assets/scss/common/mixins';
26
27
  .category {
27
28
  &__headline {
28
29
  color: #9da6ad;
@@ -30,12 +31,11 @@ const props = defineProps<{
30
31
  font-weight: 400;
31
32
  line-height: 19.36px;
32
33
  }
33
- &-block {
34
- display: flex;
35
- flex-direction: row;
36
- justify-content: flex-start;
37
- border-top: 1px solid var(--global-border-color);
38
- margin-top: -4px;
34
+ &__block {
35
+ @include flex($dir: row, $just: flex-start, $w: wrap);
36
+ gap: 12px;
37
+ border-bottom: 1px solid var(--horizontal-line);
38
+ padding: 16px 0 24px;
39
39
  }
40
40
  }
41
41
  </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.514",
4
+ "version": "1.4.515",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",