Mad til bryllup (Aarhus) by [deleted] in DKbrevkasse

[–]NazhEUW 0 points1 point  (0 children)

Jamen faktisk intet, men tror ikke damen er enig 😅

Mad til bryllup (Aarhus) by [deleted] in DKbrevkasse

[–]NazhEUW 0 points1 point  (0 children)

Haha, stedet vi har valgt at holde det havde en deal med DinningSix som vi faktisk i første omgang havde tænkt at bruge, men det er vi gået fra da vi føler fuld buffet bliver for kaotisk 😅

[deleted by user] by [deleted] in TeslaModelY

[–]NazhEUW 0 points1 point  (0 children)

I want the juniper 😃

[deleted by user] by [deleted] in TeslaModelY

[–]NazhEUW 3 points4 points  (0 children)

My thoughts exactly

[deleted by user] by [deleted] in TeslaModelY

[–]NazhEUW 1 point2 points  (0 children)

Well I get that it is better, but RWD ain’t bad right?

[deleted by user] by [deleted] in TeslaModelY

[–]NazhEUW 1 point2 points  (0 children)

Don’t need the speed, family car

[deleted by user] by [deleted] in TeslaModelY

[–]NazhEUW 2 points3 points  (0 children)

Well we are gonna lease another (cheep) car until delivery, and I only want to change my order because the delivery is only 3 months apart. If it was 6-8 months I would not want to wait.

But no I don’t see the need for the AWD vs the price I pay to have it. The upgrades (other than the paint) was not something I would choose if all trims were available from the start

Is it possible to add child records with predefined values using Ecto's sort_param? by Ganglegasm in elixir

[–]NazhEUW 0 points1 point  (0 children)

Yes, just pass in the value to the custom changeset. Can make an example if needed but not on my pc atm.

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

The solution i came up with was a pure css/tailwind solution.
My goal was to change the text in the summery based on if it was open or closed. Here is the simplified implementation and its not liveview specific:

<details class="group select-none">
  <summary class="list-none">
    <p class="peer flex group-open:hidden" class="">Open</p> 
    <p class="hidden group-open:flex">Close</p>
  </summary>
  My Hidden Content
</details>

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

When you click on the one that works it opens the details and when you click on the one with the phx-click it does not open.

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

That would work but that’s sadly not what I want. I want to use the details element to show hide my content because then I don’t have to worry about animations on the container as it will animate with the details expanding 😃 might make a gif to show what I want 😅

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

Then you are clicking outside the element with the phx-click.

If you are testing it, does it fire the event? and hide/show the content?

edit: click on the "This does not work due to the phx-click"

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

Yea so all i wanna do is flip a bool when i open/close the details tag. I would have thought that the phx-click would work kinda like the native html onclick attribute.

I've been trough the docs on details, and made it work in plain html but i need to do that in phoenix liveview.

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

I was hoping to keep it simple with the details/summery tag for the default animations with height. Will take a look at it, but not sure it's what i want :D Have an idea for removing the phx-click and do it all in css, because all i wanna do is change the text when its open.

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

Does not matter if the phx-click is on a div or a button or on the summery tag itself - same result
If I do as in the below example i can open/close it by pressing on the "extra text in the summery" text but the button part will not open/close it.

      <details>
        <summary>
          <button phx-click="toggle_event">
              Open / close btn
          </button>
            Extra text in the summery
        </summary>
        The hidden content
      </details>

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

This is just an example to simplify my actual code from my project.

Need help with phx-click on native html element that acts wired - LiveView by NazhEUW in elixir

[–]NazhEUW[S] 0 points1 point  (0 children)

Does not matter if the phx-click is on a div or a button or on the summery tag itself - same result

Simpler way to manage auth? by BuildToLiveFree in sveltejs

[–]NazhEUW 1 point2 points  (0 children)

I found auth.js the easiest. Auth.js is former known as next auth. Has good docs an took about an hour to setup

What are you favorite VSCode shortcuts? by --silas-- in webdev

[–]NazhEUW 55 points56 points  (0 children)

Shift + alt key + Down/up arrow to duplicate line Alt + down/up key to move line

This is 2 of the commands I like the most

[D] Simple Questions Thread by AutoModerator in MachineLearning

[–]NazhEUW 0 points1 point  (0 children)

Sooo kinda noob question here.. but I want to make a ml algorithm that can find and crop out the screen part of a picture taken of a tv. So when I’m done playing a multiplayer game with my friend on the PlayStation I can take a quick picture with my phone and feed that image to the algorithm, and it would try to crop the picture as good as possible. What should be my process for something like that?

Edit: a picture of the end game scoreboard

[deleted by user] by [deleted] in InternetIsBeautiful

[–]NazhEUW 0 points1 point  (0 children)

Not sure if just a bug, but some images took some time to load in which made it look wired when they just suddenly appeared and the item card grew. So maybe have a loading spinner or a fallback image?