rpeshkov / tailwind-nested-vscode

Edit Tailwind CSS classes easy way
https://marketplace.visualstudio.com/items?itemName=RomanPeshkov.tailwind-nested
MIT License
6 stars 0 forks source link

Combining a string back does not seem to work #4

Open rsxdalv opened 1 month ago

rsxdalv commented 1 month ago

<div className="flex flex-col gap-y-2"></div>

When I split it:


<div className="
  flex
  flex-col
  gap-y-2
  "></div>

I can no longer recombine it with CTRL ALT E

rsxdalv commented 1 month ago

It does however work with this code:

<SliderPrimitive.Track
      className={cn(
        "relative grow overflow-hidden rounded-full bg-secondary",
        "data-[orientation='horizontal']:h-2 data-[orientation='horizontal']:w-full",
        "data-[orientation='vertical']:h-full data-[orientation='vertical']:w-2"
      )}
    >

    <SliderPrimitive.Track
      className={cn(
        "relative grow overflow-hidden rounded-full bg-secondary",
        "
          data-[orientation='horizontal']:
            h-2
            w-full
          ",
        "data-[orientation='vertical']:h-full data-[orientation='vertical']:w-2"
      )}
    >