Skip to content

Commit

Permalink
Add Renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Apr 30, 2024
1 parent b0cca3a commit 72e9063
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["config:recommended", "schedule:weekly", ":prConcurrentLimitNone", ":prHourlyLimitNone"]
}
27 changes: 27 additions & 0 deletions packages/primitives/leptos/popper/example/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ use leptos::*;
use radix_leptos_popper::*;
use tailwind_fuse::*;

// TODO: add router and separate pages for each component, similar to Storybook

#[component]
pub fn App() -> impl IntoView {
view! {
Expand Down Expand Up @@ -39,6 +41,31 @@ fn Styled() -> impl IntoView {
}
}

#[component]
fn WithCustomArrow() -> impl IntoView {
view! {}
}

#[component]
fn Animated() -> impl IntoView {
view! {}
}

#[component]
fn WithPortal() -> impl IntoView {
view! {}
}

#[component]
fn WithUpdatePositionStrategyAlways() -> impl IntoView {
view! {}
}

#[component]
fn Chromatic() -> impl IntoView {
view! {}
}

#[component]
fn Scrollable(children: Children) -> impl IntoView {
// TODO: figure out how the 200vh works in the stories
Expand Down
13 changes: 5 additions & 8 deletions packages/primitives/leptos/popper/src/popper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,15 @@ pub fn PopperContent(
view! {
<div
_ref={floating_ref}
style:position=move || match floating_styles().position {
Strategy::Absolute => "absolute",
Strategy::Fixed => "fixed",
}
style:top=move || floating_styles().top
style:left=move || floating_styles().left
style:position=move || floating_styles().style_position()
style:top=move || floating_styles().style_top()
style:left=move || floating_styles().style_left()
style:transform=move || match is_positioned() {
true => floating_styles().transform,
true => floating_styles().style_transform(),
// Keep off the page when measuring
false => Some("translate(0, -200%)".into())
}
style:will-change=move || floating_styles().will_change
style:will-change=move || floating_styles().style_will_change()
style:min-width="max-content"
style:z-index=content_z_index
style=("--radix-popper-transform-origin", transform_origin)
Expand Down

0 comments on commit 72e9063

Please sign in to comment.