@bbki.ng/bb-msg-history 0.9.0 → 0.10.0

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.
@@ -68,7 +68,7 @@ export const MAIN_STYLES = `
68
68
  width: 36px;
69
69
  height: 36px;
70
70
  border-radius: 50%;
71
- background: transparent;
71
+ background: #ffffff;
72
72
  border: none;
73
73
  color: ${THEME.gray[500]};
74
74
  cursor: pointer;
@@ -77,8 +77,8 @@ export const MAIN_STYLES = `
77
77
  justify-content: center;
78
78
  opacity: 0;
79
79
  visibility: hidden;
80
- transform: translateX(-50%) translateY(10px) scale(0.9);
81
- transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
80
+ transform: translateX(-50%) translateY(10px) scale(0);
81
+ transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
82
82
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
83
83
  z-index: 10;
84
84
  }
@@ -91,12 +91,12 @@ export const MAIN_STYLES = `
91
91
 
92
92
  .scroll-to-bottom:hover {
93
93
  color: ${THEME.gray[700]};
94
- transform: translateX(-50%) translateY(-2px);
94
+ transform: translateX(-50%) translateY(-2px) scale(1.05);
95
95
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
96
96
  }
97
97
 
98
98
  .scroll-to-bottom:active {
99
- transform: translateX(-50%) translateY(0) scale(0.95);
99
+ transform: translateX(-50%) translateY(-1px) scale(0.95);
100
100
  }
101
101
 
102
102
  .scroll-to-bottom svg {
@@ -425,19 +425,19 @@ export const MAIN_STYLES = `
425
425
 
426
426
  .scroll-to-bottom {
427
427
  transition: opacity 0.15s ease, visibility 0.15s ease;
428
- transform: translateX(-50%);
428
+ transform: translateX(-50%) translateY(10px) scale(0);
429
429
  }
430
430
 
431
431
  .scroll-to-bottom.visible {
432
- transform: translateX(-50%);
432
+ transform: translateX(-50%) translateY(0) scale(1);
433
433
  }
434
434
 
435
435
  .scroll-to-bottom:hover {
436
- transform: translateX(-50%);
436
+ transform: translateX(-50%) translateY(-2px) scale(1);
437
437
  }
438
438
 
439
439
  .scroll-to-bottom:active {
440
- transform: translateX(-50%);
440
+ transform: translateX(-50%) translateY(0) scale(0.95);
441
441
  }
442
442
  }
443
443
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/bb-msg-history",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "A chat-style message history web component",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -69,7 +69,7 @@ export const MAIN_STYLES = `
69
69
  width: 36px;
70
70
  height: 36px;
71
71
  border-radius: 50%;
72
- background: transparent;
72
+ background: #ffffff;
73
73
  border: none;
74
74
  color: ${THEME.gray[500]};
75
75
  cursor: pointer;
@@ -78,8 +78,8 @@ export const MAIN_STYLES = `
78
78
  justify-content: center;
79
79
  opacity: 0;
80
80
  visibility: hidden;
81
- transform: translateX(-50%) translateY(10px) scale(0.9);
82
- transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
81
+ transform: translateX(-50%) translateY(10px) scale(0);
82
+ transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
83
83
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
84
84
  z-index: 10;
85
85
  }
@@ -92,12 +92,12 @@ export const MAIN_STYLES = `
92
92
 
93
93
  .scroll-to-bottom:hover {
94
94
  color: ${THEME.gray[700]};
95
- transform: translateX(-50%) translateY(-2px);
95
+ transform: translateX(-50%) translateY(-2px) scale(1.05);
96
96
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
97
97
  }
98
98
 
99
99
  .scroll-to-bottom:active {
100
- transform: translateX(-50%) translateY(0) scale(0.95);
100
+ transform: translateX(-50%) translateY(-1px) scale(0.95);
101
101
  }
102
102
 
103
103
  .scroll-to-bottom svg {
@@ -426,19 +426,19 @@ export const MAIN_STYLES = `
426
426
 
427
427
  .scroll-to-bottom {
428
428
  transition: opacity 0.15s ease, visibility 0.15s ease;
429
- transform: translateX(-50%);
429
+ transform: translateX(-50%) translateY(10px) scale(0);
430
430
  }
431
431
 
432
432
  .scroll-to-bottom.visible {
433
- transform: translateX(-50%);
433
+ transform: translateX(-50%) translateY(0) scale(1);
434
434
  }
435
435
 
436
436
  .scroll-to-bottom:hover {
437
- transform: translateX(-50%);
437
+ transform: translateX(-50%) translateY(-2px) scale(1);
438
438
  }
439
439
 
440
440
  .scroll-to-bottom:active {
441
- transform: translateX(-50%);
441
+ transform: translateX(-50%) translateY(0) scale(0.95);
442
442
  }
443
443
  }
444
444
  `;