vim-matchtag icon indicating copy to clipboard operation
vim-matchtag copied to clipboard

can't highlight the correct match tag

Open tribhuwan-kumar opened this issue 5 months ago • 0 comments

when there is a self closing tag, it doesn't highlight the correct matching tag as you can see the correct match tag is red arrow, but its highlighting the white one

Image



sample
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
    <div
      className={`w-[90%] mt-[45px] mr-auto ml-auto my-auto flex items-center justify-center ${ className || ""}`}
    >
      <div className="relative w-full h-fit inline-block">
        <div className="group w-full" onDoubleClick={onDoubleClick}>
          <div
            style={tooltipStyle}
            className="absolute bottom-full mb-4 px-1 py-0.5 bg-[#424242] text-slate-200/80 text-sm rounded-md opacity-0 group-hover:opacity-100
            shadow-lg transition-opacity duration-300 pointer-events-none"
          >
            <span className="font-medium text-center">{value}</span>
            <div className="absolute top-full left-1/2 -translate-x-1/2 w-0 h-0 border-x-4 border-x-transparent border-t-4 border-t-[#424242]"></div>
          </div>
          <span className="absolute right-0 bottom-10 ml-auto mr-2 text-xs text-shadow-lg text-center items-center content-center text-slate-200/60 mt-3">
            {displayName}
          </span>
          <div className="relative flex h-[5px] items-center">
            <div className="absolute w-full h-full rounded-full bg-gray-300"></div>
            <div
              className="absolute h-[5px] rounded-full bg-[#514e4c]"
              style={fillStyle}
            />
            <div
              className="absolute top-1/2 -translate-y-1/2 w-4 h-4 bg-white rounded-full cursor-pointer shadow-md border-2 
              border-gray-600/70 group-hover:scale-110 transition-transform duration-200"
              style={thumbStyle}
            />
          </div>
          <input
            type="range"
            min={minValue}
            max={maxValue}
            value={value}
            onChange={(e) => onChange(Number(e.target.value))}
            className="absolute w-full h-[5px] top-0 left-0 opacity-0 cursor-pointer"
          />
        </div>
        <div className="flex justify-between items-center content-center text-xs text-center text-shadow-lg text-slate-200/60 mt-3">
          <span>{minValue}</span>
          <span className="absolute"
            style={{
              left: `${centerPercent}%`,
              transform: 'translateX(-50%)'
            }}
          >
            {center}
          </span>
          <span>{maxValue}</span>
        </div>
      </div>
    </div>
  </body>
</html>

tribhuwan-kumar avatar Sep 14 '25 05:09 tribhuwan-kumar