Skip to content

Commit f946cdd

Browse files
committed
fixed resizing for Safari
Signed-off-by: Maximilian Inckmann <[email protected]>
1 parent b8b1155 commit f946cdd

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

packages/stencil-library/src/components/pid-collapsible/collapsible.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ pid-collapsible.resize-both {
5252

5353
pid-collapsible.resize-both {
5454
-webkit-resize: both !important;
55+
resize: both !important;
56+
overflow: auto !important;
5557
}
5658
}
5759
}
@@ -145,6 +147,30 @@ pid-collapsible.resize-both::after {
145147
height: 0;
146148
visibility: hidden;
147149
}
150+
151+
/* Ensure resize works in Safari */
152+
pid-collapsible.resize-both {
153+
position: relative;
154+
-webkit-resize: both !important;
155+
resize: both !important;
156+
overflow: auto !important;
157+
max-width: 100% !important;
158+
max-height: 90vh !important;
159+
display: block !important;
160+
}
161+
162+
/* Enhanced resize handle visibility for Safari */
163+
pid-collapsible.resize-both::after {
164+
content: '';
165+
position: absolute;
166+
bottom: 0;
167+
right: 0;
168+
width: 15px;
169+
height: 15px;
170+
cursor: nwse-resize;
171+
background: linear-gradient(-45deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 50%);
172+
z-index: 10;
173+
}
148174
}
149175

150176
/*

packages/stencil-library/src/components/pid-component/pid-component.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@ pid-component {
2626
clear: both;
2727
height: 0;
2828
}
29+
30+
/* Ensure resize functionality in Safari */
31+
pid-component pid-collapsible.resize-both {
32+
-webkit-resize: both !important;
33+
resize: both !important;
34+
overflow: auto !important;
35+
}
2936
}

packages/stencil-library/tailwind.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export default {
77
extend: {
88
resize: {
99
both: 'both',
10+
none: 'none',
11+
x: 'horizontal',
12+
y: 'vertical',
1013
},
1114
},
1215
},

0 commit comments

Comments
 (0)