@astral/ui 4.115.0 → 4.115.1

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,4 +1,4 @@
1
- import { HOVER_MEDIA, selfContainedClassname } from '../constants';
1
+ import { HOVER_MEDIA, SCROLLBAR_SIZE, selfContainedClassname, } from '../constants';
2
2
  import { pdfViewerClassnames } from '../PdfViewer/constants';
3
3
  import { styled } from '../styled';
4
4
  import { PAGE_CONTENT_ANIMATION, pageContentClassnames } from './constants';
@@ -60,10 +60,16 @@ export const Content = styled.div `
60
60
 
61
61
  ${HOVER_MEDIA} {
62
62
  scrollbar-gutter: stable;
63
+
64
+ padding-right: ${({ theme }) => `calc(${theme.spacing(6)} - ${SCROLLBAR_SIZE})`};
63
65
  }
64
66
 
65
67
  &.${pageContentClassnames.contentHasHeader}, &.${pageContentClassnames.hasAside} {
66
68
  padding: ${({ theme }) => theme.spacing(4, 6, 4)};
69
+
70
+ ${HOVER_MEDIA} {
71
+ padding-right: ${({ theme }) => `calc(${theme.spacing(6)} - ${SCROLLBAR_SIZE})`};
72
+ }
67
73
  }
68
74
 
69
75
  ${({ theme }) => theme.breakpoints.down('laptop')} {
@@ -71,8 +77,16 @@ export const Content = styled.div `
71
77
  padding-bottom: ${({ theme }) => theme.spacing(3)};
72
78
  padding-left: ${({ theme }) => theme.spacing(4)};
73
79
 
80
+ ${HOVER_MEDIA} {
81
+ padding-right: ${({ theme }) => `calc(${theme.spacing(4)} - ${SCROLLBAR_SIZE})`};
82
+ }
83
+
74
84
  &.${pageContentClassnames.contentHasHeader}, &.${pageContentClassnames.hasAside} {
75
85
  padding: ${({ theme }) => theme.spacing(4, 4, 3)};
86
+
87
+ ${HOVER_MEDIA} {
88
+ padding-right: ${({ theme }) => `calc(${theme.spacing(4)} - ${SCROLLBAR_SIZE})`};
89
+ }
76
90
  }
77
91
  }
78
92
 
@@ -88,6 +102,16 @@ export const Content = styled.div `
88
102
  border: 1px solid ${({ theme }) => theme.palette.components.border.default};
89
103
  border-radius: ${({ theme }) => theme.shape.medium};
90
104
 
105
+ ${HOVER_MEDIA} {
106
+ padding-right: ${({ theme }) => theme.spacing(4)};
107
+ }
108
+
109
+ &.${pageContentClassnames.contentHasHeader}, &.${pageContentClassnames.hasAside} {
110
+ ${HOVER_MEDIA} {
111
+ padding-right: ${({ theme }) => theme.spacing(4)};
112
+ }
113
+ }
114
+
91
115
  &.${pageContentClassnames.contentHasHeader} {
92
116
  border-top-left-radius: 0;
93
117
  border-top-right-radius: 0;
@@ -63,10 +63,16 @@ exports.Content = styled_1.styled.div `
63
63
 
64
64
  ${constants_1.HOVER_MEDIA} {
65
65
  scrollbar-gutter: stable;
66
+
67
+ padding-right: ${({ theme }) => `calc(${theme.spacing(6)} - ${constants_1.SCROLLBAR_SIZE})`};
66
68
  }
67
69
 
68
70
  &.${constants_3.pageContentClassnames.contentHasHeader}, &.${constants_3.pageContentClassnames.hasAside} {
69
71
  padding: ${({ theme }) => theme.spacing(4, 6, 4)};
72
+
73
+ ${constants_1.HOVER_MEDIA} {
74
+ padding-right: ${({ theme }) => `calc(${theme.spacing(6)} - ${constants_1.SCROLLBAR_SIZE})`};
75
+ }
70
76
  }
71
77
 
72
78
  ${({ theme }) => theme.breakpoints.down('laptop')} {
@@ -74,8 +80,16 @@ exports.Content = styled_1.styled.div `
74
80
  padding-bottom: ${({ theme }) => theme.spacing(3)};
75
81
  padding-left: ${({ theme }) => theme.spacing(4)};
76
82
 
83
+ ${constants_1.HOVER_MEDIA} {
84
+ padding-right: ${({ theme }) => `calc(${theme.spacing(4)} - ${constants_1.SCROLLBAR_SIZE})`};
85
+ }
86
+
77
87
  &.${constants_3.pageContentClassnames.contentHasHeader}, &.${constants_3.pageContentClassnames.hasAside} {
78
88
  padding: ${({ theme }) => theme.spacing(4, 4, 3)};
89
+
90
+ ${constants_1.HOVER_MEDIA} {
91
+ padding-right: ${({ theme }) => `calc(${theme.spacing(4)} - ${constants_1.SCROLLBAR_SIZE})`};
92
+ }
79
93
  }
80
94
  }
81
95
 
@@ -91,6 +105,16 @@ exports.Content = styled_1.styled.div `
91
105
  border: 1px solid ${({ theme }) => theme.palette.components.border.default};
92
106
  border-radius: ${({ theme }) => theme.shape.medium};
93
107
 
108
+ ${constants_1.HOVER_MEDIA} {
109
+ padding-right: ${({ theme }) => theme.spacing(4)};
110
+ }
111
+
112
+ &.${constants_3.pageContentClassnames.contentHasHeader}, &.${constants_3.pageContentClassnames.hasAside} {
113
+ ${constants_1.HOVER_MEDIA} {
114
+ padding-right: ${({ theme }) => theme.spacing(4)};
115
+ }
116
+ }
117
+
94
118
  &.${constants_3.pageContentClassnames.contentHasHeader} {
95
119
  border-top-left-radius: 0;
96
120
  border-top-right-radius: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "4.115.0",
3
+ "version": "4.115.1",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {