Open seancolsen opened 2 years ago
This will be visible in the demo video, so I'm bumping this up with the hope that it might be quick to implement.
This should be easy enough. Should I go ahead and start working on it ?
Sure, @IyadElwy feel free to start work and submit a PR when you have one. Thanks!
@seancolsen
I wanted to ask about the favicon locations. Right now I've been able to only locate logo.svg
in mathesar_ui/src/static-assets/logo.svg
, which is the mathesar logo. Are there any other local svg's or should I search a 3rd party provider like FontAwesome for the rest of the icons like for example the database page ?
I thought I'd ask first to adhere to any conventions.
@IyadElwy You'll need to look in our src/icons.ts
to find the name of the FontAwesome icon that we're currently using to represent the entity. Then you'll need to go to the FontAwesome website and download that icon as an SVG. Then save those files alongside mathesar_ui/src/static-assets/logo.svg
And actually we have started using custom icons for some of the entities (e.g. Exploration). You'll need to create an SVG for that. The simplest way is to inspect the DOM when viewing a page with that icon and then copy the HTML that gets generated for it. You can use that same process for all the icons actually (including the FontAwesome ones).
Great, I’ll get on that.
On Fri, 18 Nov 2022 at 21:24 Sean Colsen @.***> wrote:
And actually we have started using custom icons for some of the entities (e.g. Exploration). You'll need to create an SVG for that. The simplest way is to inspect the DOM when viewing a page with that icon and then copy the HTML that gets generated for it. You can use that same process for all the icons actually (including the FontAwesome ones).
— Reply to this email directly, view it on GitHub https://github.com/centerofci/mathesar/issues/1520#issuecomment-1320437929, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZQTS35ETXATG2MPPAGVQTWI7JVNANCNFSM56JQVI3A . You are receiving this because you were mentioned.Message ID: @.***>
I got the favicons to appear like so:
But I struggled to understand how to use the icons.ts
file and I'm not sure if the implementation adheres to your style guides but I tried to do it in a modularised manner.
I submitted a PR. If anything needs to be changed I'm always open to working on it again.
@IyadElwy I see you have a adding_favicons
branch within your fork, but I don't see a PR open for this work. The next step here is to open a PR with those changes. Then we can discuss your implementation within that PR.
@seancolsen the PR is #1958
Thanks, @kgodey. Not sure why I didn't see that before.
This issue has not been updated in 90 days and is being marked as stale.
Current behavior
Desired behavior
Implementation
src/icons.ts
to find the correct FontAwesome icons for those entities.<svelte:head>
to modify the HTML<head>
element from within components likeTablePage.svelte
See also
3605 which is simpler (just one static favicon) and higher priority