title: how to design this edit-icon?
body: <p>Please check and run this example.</p>
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>img {
    width: 10px;
  }
  
  pre {
    overflow: initial;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    max-width: 300px;
    border: 1px solid;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale="&gt;
    &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;pre&gt;Lorem ipsum, dolor sit amet consectetur ad&lt;img src="https://randomm.cdn.bcebos.com/edit%20(1).svg"&gt;&lt;/img&gt;&lt;/pre&gt;
    
    &lt;pre&gt;Lorem ipsum, dolor sit amet consectetu&lt;img src="https://randomm.cdn.bcebos.com/edit%20(1).svg"&gt;&lt;/img&gt;&lt;/pre&gt;
    
     &lt;pre&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod voluptate nesciunt velit? Officiis doloribus fugit et harum nobis assumenda&lt;img src="https://randomm.cdn.bcebos.com/edit%20(1).svg"&gt;&lt;/img&gt;&lt;/pre&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I need to let the icon follow the text inside the <code>pre</code> tag, but at some situation the text length will be exact the max-width of the <code>pre</code> tag, which leads to make the icon present at the next line.This has a very bad user experience. Please tell me how to design this edit-icon. Thank you.</p>