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

Added footer & small improvments #246

Closed
wants to merge 29 commits into from

Conversation

Poseidon281
Copy link
Contributor

No description provided.

Copy link
Member

@lancepioch lancepioch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks. I'll take a look later!

resources/views/filament/Footer.blade.php Outdated Show resolved Hide resolved
app/Providers/Filament/AdminPanelProvider.php Outdated Show resolved Hide resolved
app/Providers/Filament/AdminPanelProvider.php Outdated Show resolved Hide resolved
app/Providers/Filament/AdminPanelProvider.php Outdated Show resolved Hide resolved
app/Providers/Filament/AdminPanelProvider.php Outdated Show resolved Hide resolved
app/Filament/Resources/ServerResource.php Outdated Show resolved Hide resolved
app/Filament/Resources/NodeResource.php Outdated Show resolved Hide resolved
resources/views/filament/Footer.blade.php Outdated Show resolved Hide resolved
@Poseidon281
Copy link
Contributor Author

Awesome, thanks. I'll take a look later!
@lancepioch

Right now i have the Return to Client on the nav bar like this:

image

If you like that more i can also add it to the user menu like this:

image

Which ever one you like more

@gOOvER
Copy link
Contributor

gOOvER commented May 18, 2024

2nd one is nice. Return to Client on top

@lancepioch
Copy link
Member

So the footer looks nice but also awkward because it's abruptly cut off.
Perhaps we can get it showing across the whole bottom?
Also the footer doesn't show up at all if the top navigation is enabled.

@Poseidon281
Copy link
Contributor Author

Poseidon281 commented May 19, 2024

So the footer looks nice but also awkward because it's abruptly cut off. Perhaps we can get it showing across the whole bottom? Also the footer doesn't show up at all if the top navigation is enabled.

Yes that is because I set it to the footer of het navbar, but with my last commit I changed it to look like this:

image

But if i do that it is constantly in view like this:
image

So what if i do it like this:

image

Only i have not found a fix for it not being visible if topbar is enabled. Will work on that

@notAreYouScared
Copy link
Member

image

We can use this one.

@lancepioch
Copy link
Member

Very last screenshot looks good, think we can get that one in

@Poseidon281
Copy link
Contributor Author

Very last screenshot looks good, think we can get that one in

Oké well that is the one I have for this PR right now so I think the PR can be merged then.

Copy link
Member

@lancepioch lancepioch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work, two last things and we're gtg

Comment on lines 10 to 32
<style>
footer {
padding: 0;
margin: 0;
height: auto;
background: none;
bottom: 8px;
}

footer .flex {
padding: 0.25rem 0;
margin: 0;
}

footer img {
margin-right: 8px;
}

footer span {
padding: 0;
margin: 0;
}
</style>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should just be tailwind classes above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styles defined in the <style> block should remain because changing them to Tailwind classes alone does not work then the footer is over Pelican for some reason. I have not got it working in any other way except this one.

app/Providers/Filament/AdminPanelProvider.php Outdated Show resolved Hide resolved
@@ -50,6 +51,14 @@ public function panel(Panel $panel): Panel
'warning' => Color::Amber,
'blurple' => Color::hex('#5865F2'),
])
->renderHook('panels::sidebar.footer', fn () => view('filament.footer')) // TODO make the footer also work with topNavigation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
->renderHook('panels::sidebar.footer', fn () => view('filament.footer')) // TODO make the footer also work with topNavigation
->renderHook(PanelsRenderHook::FOOTER, fn () => view('filament.footer')) // TODO make the footer also work with topNavigation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you do this with only footer and not sidebar footer then you have this:

image

I have tested almost all of the renderhooks and this is the only one that comes out nice:

image

@lancepioch
Copy link
Member

For better or worse I think it'll be best for us to absolutely stick with TailwindCSS instead of using raw CSS in here. Let's try to tackle that.

@lancepioch lancepioch marked this pull request as draft June 7, 2024 04:04
@Poseidon281
Copy link
Contributor Author

For better or worse I think it'll be best for us to absolutely stick with TailwindCSS instead of using raw CSS in here. Let's try to tackle that.

Oke i cant get it to work with Tailwind so if one of the team members can try that. That would be great

@lancepioch
Copy link
Member

Let's table this for now until we can figure out Tailwind. It will probably be a lot easier after #353

@lancepioch lancepioch closed this Jun 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants