GithubHelp home page GithubHelp logo

Current day section very large, lots of wasted space, forecast icons too small to distinguish in some cases about clock-weather-card HOT 3 OPEN

alexruffell avatar alexruffell commented on June 3, 2024 8
Current day section very large, lots of wasted space, forecast icons too small to distinguish in some cases

from clock-weather-card.

Comments (3)

alexruffell avatar alexruffell commented on June 3, 2024 4

@AlfonsoHassio I found a couple tweaks using card_mod that make the card smaller and after months of using it, I have never seen anything be cut off:

without card_mod:
image

with card_mod:
image

type: custom:clock-weather-card
card_mod:
  style: |
    .card-content { 
       padding-top: 0px;
       margin-top: -10px;
    }
entity: weather.openweathermap
sun_entity: sun.sun
weather_icon_type: line
animated_icon: true
forecast_days: 5
locale: en
time_format: 24
date_pattern: PPP
hide_today_section: false
hide_forecast_section: false

The part that matters is:

card_mod:
  style: |
    .card-content { 
       padding-top: 0px;
       margin-top: -10px;
    }

...as it removes the padding and it pulls the margin up by 10 pixels. With how my card is currently configured, I have never seen these tweaks cause trouble but can't say it will be the same for all variations. It doesn't eliminate a lot but it made a noticeable difference on my dashboard.

from clock-weather-card.

dskramst avatar dskramst commented on June 3, 2024

seems something in a recent HA update made it do that, it was much smaller not long ago.

from clock-weather-card.

AlfonsoHassio avatar AlfonsoHassio commented on June 3, 2024

Im interested on this aswell. Great card but at the moment takes too much space, its really difficult to fit rest of the cards in my dashboard.

from clock-weather-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.