zammad/zammad

View on GitHub
app/frontend/shared/composables/useStickyHeader.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useStickyHeader has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useStickyHeader = (
  dependencies: WatchSource[] = [],
  header = ref<InstanceType<typeof LayoutHeader> | HTMLElement>(),
) => {
  const { y, directions } = useScroll(window.document, {
Severity: Minor
Found in app/frontend/shared/composables/useStickyHeader.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status