mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:49:45 +00:00
Подгон слайдера под проекты
This commit is contained in:
1 parent
ec6275a4f2
commit
4591a8b77c
4 files changed
+75
-34
No files matched your search
@@ -12,7 +12,7 @@ export const useResizeObserver = ({
|
||||
parentSelector,
|
||||
childSelector = 'blockquote',
|
||||
onResize = (parent, height) => {
|
||||
parent.style.marginBottom = `calc(${height}px + 2em)`;
|
||||
parent.style.paddingBottom = `calc(${height}px + 2em)`;
|
||||
}
|
||||
}: UseResizeObserverConfig) => {
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user