shared-ritm 1.2.24 → 1.2.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -1,108 +1,108 @@
1
- <template>
2
- <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
- <q-toolbar :class="$style.toolbar">
4
- <h1>{{ pageTitle }}</h1>
5
- <div :class="$style['action-buttons']">
6
- <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
7
- </div>
8
- </q-toolbar>
9
- </q-header>
10
- </template>
11
-
12
- <script lang="ts" setup>
13
- import { computed, defineProps, withDefaults } from 'vue'
14
- import AppButton from '@/common/app-button/AppButton.vue'
15
- interface Props {
16
- userData: any
17
- fullWidth?: boolean
18
- pageTitle?: string
19
- }
20
-
21
- const props = withDefaults(defineProps<Props>(), {
22
- pageTitle: '',
23
- })
24
-
25
- const shortName = computed(
26
- () =>
27
- `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
28
- props.userData?.patronymic?.[0] ? '.' : ''
29
- }`,
30
- )
31
- </script>
32
-
33
- <style lang="scss" module>
34
- .header {
35
- height: 100px;
36
- background: transparent;
37
- margin: 0 auto;
38
- max-width: 1300px;
39
- }
40
- .header-full {
41
- max-width: 100%;
42
- padding-right: 20px;
43
- padding-left: 20px;
44
- }
45
- .toolbar {
46
- padding: 0;
47
- min-height: 100%;
48
- h1 {
49
- font-weight: 600;
50
- font-size: 28px;
51
- line-height: 100%;
52
- font-family: Montserrat, sans-serif;
53
- }
54
- }
55
-
56
- .header-search {
57
- width: 412px;
58
- font-size: 16px;
59
- }
60
-
61
- .action-buttons {
62
- flex: 1;
63
- position: relative;
64
- display: flex;
65
- align-items: center;
66
- column-gap: 16px;
67
- justify-content: end;
68
- }
69
-
70
- .button {
71
- padding: 12px;
72
- background: white;
73
- transition: all 0.3s ease, color 0.3s ease;
74
- }
75
-
76
- .button-person {
77
- padding: 10px 14px;
78
- background: white;
79
- }
80
-
81
- @media (max-width: 1440px) {
82
- .header {
83
- height: 100px;
84
- background: transparent;
85
- margin: 0 auto;
86
- max-width: 874px;
87
- }
88
- .header-search {
89
- width: 343px;
90
- font-size: 16px;
91
- }
92
- .action-buttons {
93
- position: relative;
94
- display: flex;
95
- align-items: center;
96
- column-gap: 8px;
97
- }
98
- .button {
99
- padding: 10px;
100
- background: white;
101
- transition: all 0.3s ease, color 0.3s ease;
102
- }
103
- .button-person {
104
- padding: 8px 10px;
105
- background: white;
106
- }
107
- }
108
- </style>
1
+ <template>
2
+ <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
+ <q-toolbar :class="$style.toolbar">
4
+ <h1>{{ pageTitle }}</h1>
5
+ <div :class="$style['action-buttons']">
6
+ <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
7
+ </div>
8
+ </q-toolbar>
9
+ </q-header>
10
+ </template>
11
+
12
+ <script lang="ts" setup>
13
+ import { computed, defineProps, withDefaults } from 'vue'
14
+ import AppButton from '@/common/app-button/AppButton.vue'
15
+ interface Props {
16
+ userData: any
17
+ fullWidth?: boolean
18
+ pageTitle?: string
19
+ }
20
+
21
+ const props = withDefaults(defineProps<Props>(), {
22
+ pageTitle: '',
23
+ })
24
+
25
+ const shortName = computed(
26
+ () =>
27
+ `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
28
+ props.userData?.patronymic?.[0] ? '.' : ''
29
+ }`,
30
+ )
31
+ </script>
32
+
33
+ <style lang="scss" module>
34
+ .header {
35
+ height: 100px;
36
+ background: transparent;
37
+ margin: 0 auto;
38
+ max-width: 1300px;
39
+ }
40
+ .header-full {
41
+ max-width: 100%;
42
+ padding-right: 30px;
43
+ padding-left: 30px;
44
+ }
45
+ .toolbar {
46
+ padding: 0;
47
+ min-height: 100%;
48
+ h1 {
49
+ font-weight: 600;
50
+ font-size: 28px;
51
+ line-height: 100%;
52
+ font-family: Montserrat, sans-serif;
53
+ }
54
+ }
55
+
56
+ .header-search {
57
+ width: 412px;
58
+ font-size: 16px;
59
+ }
60
+
61
+ .action-buttons {
62
+ flex: 1;
63
+ position: relative;
64
+ display: flex;
65
+ align-items: center;
66
+ column-gap: 16px;
67
+ justify-content: end;
68
+ }
69
+
70
+ .button {
71
+ padding: 12px;
72
+ background: white;
73
+ transition: all 0.3s ease, color 0.3s ease;
74
+ }
75
+
76
+ .button-person {
77
+ padding: 10px 14px;
78
+ background: white;
79
+ }
80
+
81
+ @media (max-width: 1440px) {
82
+ .header {
83
+ height: 100px;
84
+ background: transparent;
85
+ margin: 0 auto;
86
+ max-width: 874px;
87
+ }
88
+ .header-search {
89
+ width: 343px;
90
+ font-size: 16px;
91
+ }
92
+ .action-buttons {
93
+ position: relative;
94
+ display: flex;
95
+ align-items: center;
96
+ column-gap: 8px;
97
+ }
98
+ .button {
99
+ padding: 10px;
100
+ background: white;
101
+ transition: all 0.3s ease, color 0.3s ease;
102
+ }
103
+ .button-person {
104
+ padding: 8px 10px;
105
+ background: white;
106
+ }
107
+ }
108
+ </style>
@@ -10,7 +10,7 @@
10
10
  .page-container {
11
11
  display: flex;
12
12
  flex-direction: column;
13
- padding: 0px 20px;
13
+ padding: 0px 30px;
14
14
  height: 100%;
15
15
  }
16
16
  </style>