Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
Is it possible to make SVG equal to path?

Helo I have a problem. I am using npm package which provides pack of weather icons. The problem is the SVG box is big and it breaks positioning that is a lot of white space on website, it does not look nice. Is negative margin the way>

import {wiCloudy} from 'weather-icons-react'

const WeatherDataBox = () => { 
   return (
 icon=<WiCloudy size={256}  />

)}



<svg stroke="currentColor" fill="currentColor"
    stroke-width="0" viewBox="0 0 30 30" 
    attr="[object Object]" size="256" height="256" width="256">
   <path>*long code*</path>
</svg>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I changed viewbox and it reduced empty background

let ICON_SIZE = 256
let VIEWBOX = "5 5 20 20"
<WiCloudy viewBox={VIEWBOX}  size={ICON_SIZE}  />
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!