@buerokratt-ria/common-gui-components 0.0.50 → 0.0.51
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
|
@@ -4,6 +4,10 @@ All changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Template [MajorVersion.MediterraneanVersion.MinorVersion] - DD-MM-YYYY
|
|
6
6
|
|
|
7
|
+
## [0.0.51] - 05.05.2026
|
|
8
|
+
|
|
9
|
+
- History page header alignment
|
|
10
|
+
|
|
7
11
|
## [0.0.50] - 04.05.2026
|
|
8
12
|
|
|
9
13
|
- Added authenticated person column
|
package/package.json
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
width: 40%;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.header-container {
|
|
11
|
+
align-items: center;
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
.card-drawer-container {
|
|
11
17
|
display: flex;
|
|
12
18
|
width: 100%;
|
|
@@ -79,3 +85,7 @@
|
|
|
79
85
|
overflow-y: auto;
|
|
80
86
|
padding: get-spacing(haapsalu);
|
|
81
87
|
}
|
|
88
|
+
|
|
89
|
+
.spinner {
|
|
90
|
+
height: 24px;
|
|
91
|
+
}
|
|
@@ -1038,18 +1038,26 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
1038
1038
|
|
|
1039
1039
|
return (
|
|
1040
1040
|
<>
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1041
|
+
<div className="header-container">
|
|
1042
|
+
{displayTitle && (
|
|
1043
|
+
<h1>{t('chat.history.title')}{totalCount === null ? '' : ` (${totalCount.toLocaleString('et-EE')})`}</h1>
|
|
1044
|
+
)}
|
|
1044
1045
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1046
|
+
{showDownload && (
|
|
1047
|
+
<div>
|
|
1048
|
+
<Button
|
|
1049
|
+
type="button"
|
|
1050
|
+
appearance={"secondary"}
|
|
1051
|
+
size="s"
|
|
1052
|
+
style={{ marginTop: '4px' }}
|
|
1053
|
+
onClick={downloadChatHistory}
|
|
1054
|
+
>
|
|
1055
|
+
{loading && <CgSpinner className="spinner" />}
|
|
1056
|
+
{!loading && t('files.download_xlsx')}
|
|
1057
|
+
</Button>
|
|
1058
|
+
</div>
|
|
1059
|
+
)}
|
|
1060
|
+
</div>
|
|
1053
1061
|
|
|
1054
1062
|
<Card>
|
|
1055
1063
|
<Track gap={16}>
|
|
@@ -50,15 +50,17 @@
|
|
|
50
50
|
|
|
51
51
|
&--secondary {
|
|
52
52
|
background-color: get-color(white);
|
|
53
|
-
box-shadow: inset 0 0 0 2px get-color(
|
|
54
|
-
color: get-color(
|
|
53
|
+
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
54
|
+
color: get-color(sapphire-blue-10);
|
|
55
55
|
|
|
56
56
|
&:hover,
|
|
57
57
|
&:active {
|
|
58
|
-
|
|
58
|
+
background-color: get-color(sapphire-blue-0);
|
|
59
|
+
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
&:focus {
|
|
63
|
+
background-color: get-color(sapphire-blue-0);
|
|
62
64
|
box-shadow: inset 0 0 0 2px get-color(sapphire-blue-10);
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -145,6 +147,8 @@
|
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
&--s {
|
|
148
|
-
|
|
150
|
+
font-size: $veera-font-size-80;
|
|
151
|
+
padding: 4px 14px;
|
|
152
|
+
font-weight: 700;
|
|
149
153
|
}
|
|
150
154
|
}
|