Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Change Font Clock Widget #1239

Closed
5 tasks done
CrazyWolf13 opened this issue Jun 23, 2023 · 7 comments
Closed
5 tasks done

[BUG] Change Font Clock Widget #1239

CrazyWolf13 opened this issue Jun 23, 2023 · 7 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@CrazyWolf13
Copy link
Collaborator

Environment

Self-Hosted (Docker)

System

RaspberryPi OS 32Bit

Version

2.1.1

Describe the problem

I wanted to change the font from the Clock widget, so I tried a whole day and finally found some hints: https://github.com/Lissy93/dashy/blob/master/src/components/Widgets/Clock.vue
I change the Font and font family to be Podkova which is already in the folder: https://github.com/Lissy93/dashy/tree/master/public/fonts

But after a container restart nothing happened so I did a rebuild from the UI, and then I got the error: "Error: ENOENT: no such file or directory, stat '/app/dist/index.html" And after I manually sudo docker exec into the container the whole dist folder was gone. A recreate from portainer solved this.

But still how could I change the font of the clock to podkova? What am I doing wrong? Why is there this error?
Many thanks for an answer:)

Additional info

No response

Please tick the boxes

@CrazyWolf13 CrazyWolf13 added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jun 23, 2023
@liss-bot
Copy link
Collaborator

This issue has gone 3 months without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

@liss-bot liss-bot added the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Sep 22, 2023
@liss-bot
Copy link
Collaborator

This issue was automatically closed because it has been stalled for over 6 weeks with no activity.

@liss-bot liss-bot removed the ⚰️ Stale [ISSUE] [PR] No activity for over 1 month label Sep 27, 2023
@CrazyWolf13
Copy link
Collaborator Author

No still a request

@Lissy93
Copy link
Owner

Lissy93 commented Dec 31, 2023

Hey @CrazyWolf13

I was able to get this working using the .clock .time selector + using !important

appConfig:
  customCss: '.clock .time { font-family: "Roboto", monospace !important; }'

sections:
- name: CrazyWolf13 Clock Demo
  icon: 
  widgets:
  - type: clock

This should work with any font you have installed on your local PC.

If you want to use a font not yet installed, you could import it, also within the CSS.
For example:

appConfig:
  customCss: >
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
    .clock .time { font-family: "Poppins", monospace !important; }

@CrazyWolf13
Copy link
Collaborator Author

Hey @CrazyWolf13

I was able to get this working using the .clock .time selector + using !important

appConfig:
  customCss: '.clock .time { font-family: "Roboto", monospace !important; }'

sections:
- name: CrazyWolf13 Clock Demo
  icon: 
  widgets:
  - type: clock

This should work with any font you have installed on your local PC.

If you want to use a font not yet installed, you could import it, also within the CSS. For example:

appConfig:
  customCss: >
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
    .clock .time { font-family: "Poppins", monospace !important; }

Thanks!

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 1, 2024
@Lissy93
Copy link
Owner

Lissy93 commented Jan 1, 2024

No worries, happy new year!

@Lissy93 Lissy93 closed this as completed Jan 1, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 1, 2024
@CrazyWolf13
Copy link
Collaborator Author

No worries, happy new year!

Thank you, you too 💕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants