Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-sonnet-20241022· AnthropicHugging Face LMArena Human Preference 140K

I have made a chrome extension bmi tool using an svg image file. It shown in a popup…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Mistralmistral-medium-2505’s answer.
  1. User

    I have made a chrome extension bmi tool using an svg image file. It shown in a popup screen. But image don't fill the entire screen. Why?

  2. Claude Assistant

    To help you with the SVG scaling issue in your Chrome extension popup, I'll need to see:

    1. Your SVG markup
    2. The relevant HTML/CSS code for the popup
    3. The dimensions you're targeting

    However, here are common reasons why SVGs might not fill the entire popup screen:

    1. Missing viewport settings in SVG:
    <svg viewBox="0 0 [width] [height]" width="100%" height="100%">
    
    1. Incorrect popup HTML/CSS:
    <body style="margin: 0; padding: 0;">
      <svg style="width: 100vw; height: 100vh;">
    
    1. Popup dimensions not properly set in manifest.json:
    {
      "browser_action": {
        "default_popup": "popup.html",
        "default_width": "400",
        "default_height": "600"
      }
    }
    

    Could you share your code so I can provide more specific guidance?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.