Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Aug 6, 2022

I accumulated a bunch of improvements for autodoc's frontend here. See the commits for more info.

Here you can see the new <kbd>, the new search placeholder, the way the help modal closes when you click outside of it, and the light mode issue that I fixed in the last commit:

2022-08-06.16-02-56.mp4

Now the help modal looks like this in light mode:
image

r00ster91 added 11 commits August 6, 2022 15:01
"Dialog" is the incorrect term here because a dialog is a separate window that still lets you use the app
but a modal is a window where you can't continue using the app until you close it.
This new search placeholder looks much nicer because it allows HTML inside it which
the `placeholder` attribute on `<input>`s doesn't allow.
I tested it for all kinds of cases and it seems to work pretty well.
This fixes the new search placeholder not disappearing if you type before
it finished loading, and maybe some other things.
This is mostly manually formatted. I couldn't find a good HTML formatter for this file.
It also converts a bunch of tabs to spaces.
These should never be reassigned.
You can see this issue in the video.
@andrewrk
Copy link
Member

andrewrk commented Aug 6, 2022

The video is super nice to see the changes made in the PR 👍

@kristoff-it
Copy link
Member

Thank you very much, both the code and the UI improvements are appreciated, if you have other minor improvements please feel free to PR them and if you want to discuss bigger changes feel free to open an Issue or come chat in #autodoc in the big Zig discord server.

@kristoff-it kristoff-it merged commit 1db99b0 into ziglang:master Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants