<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに 手紙風のカードの上辺に、青い吹き出しのラベルを載せる実装をした。 最初の版は見た目こそデザインに近かったが、1つの要素に20個のクラスが並び、文字も少し上に寄って見えた。 文字の位置を補正するとチームに戻され、クラスを減らそうとすると、吹き出しの尻尾の描き方で迷った。 最終形にたどり着くまでに、補正を2通り、尻尾の描き方を6通り比べている。 それぞれ、なぜ捨てたのか。 数値は、すべて記事のコードを手元で再現して測ったものだ。 React 19.2 で HTML を作り、Tailwind CSS 4.1 と Radix Themes 3.2 の CSS を当てて、Playwright …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Fspeech-bubble-pill-label&quot; title=&quot;カードにまたがる吹き出しラベルを、CSS の補正をやめて作り直すまで - chamotaroooのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-09 22:28:00</published>
  <title>カードにまたがる吹き出しラベルを、CSS の補正をやめて作り直すまで</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/speech-bubble-pill-label</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
