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

Best method to customise this tool? #18

Open
neildcuk opened this issue Feb 17, 2021 · 3 comments
Open

Best method to customise this tool? #18

neildcuk opened this issue Feb 17, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers pinned

Comments

@neildcuk
Copy link

neildcuk commented Feb 17, 2021

Hi there — we've just installed the tool in a new project and it's working well. Thank you!

We are wondering if we can customise the view for the table. Finding it a bit stretched on smaller screens, mostly because of the date/time column being very verbose and no forced wrapping on the field values.

Any chance we can amend this locally with some override method?

Screenshot 2021-02-17 at 12 09 00

@recycledbeans
Copy link
Member

Hey @neilwhitespace I can't think of a way to override the view since all Nova components are compiled Vue.js files, but you could potentially add custom CSS to add word wrapping and other styling via a theme.

https://nova.laravel.com/docs/3.0/customization/themes.html#theme-css

@neildcuk
Copy link
Author

Hi @recycledbeans — Thanks so much for the answer! We'll likely be making a theme for this anyway so will see how much we can do there.

With regards to the date format — any chance it can be customised by a config option somewhere?

@recycledbeans
Copy link
Member

I think it's a great idea to have this be configurable, but right now there isn't a way. It would be great to use Moment.js to localize and format the date/time the same way the DateTime field does.

If you have the time and would want to contribute this to the project, I would definitely review and approve a PR for this. If not, I will certainly tag this issue as an improvement and work on it in the near future!

@recycledbeans recycledbeans added enhancement New feature or request pinned good first issue Good for newcomers labels Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers pinned
Projects
None yet
Development

No branches or pull requests

2 participants