Skip to content

Conversation

@stoyan
Copy link
Contributor

@stoyan stoyan commented Oct 12, 2022

Optimization glossary table looked a bit dated (smaller font) and glitchy to render (see #2452), so replaced it with a <dl>. Also deleted CSS for table.glossary, it wasn't used.

Any comments appreciated regarding content (didn't touch it) or formatting.

Before:

(no rendering till scroll)

Screen Shot 2022-10-12 at 3 55 07 PM

(scroll)

Screen Shot 2022-10-12 at 3 55 17 PM

After:

Screen Shot 2022-10-12 at 3 54 51 PM

@stoyan stoyan requested a review from scottjehl October 12, 2022 19:56
echo '<h3 class="hed_sub">Optimization Details</h3>';
dumpOptimizationGlossary();
require_once __DIR__ . '/resources/view.php';
echo view('snippets.glossary', []);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to namespace view so we can use use with it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, maybe. The thing is it's like this in Laravel so I thought it'd be easier to replace.

Also /resources/view.php is now autoloaded in a newer PR so view() would be just a globally accessible function like it is in Laravel: https://laravel.com/docs/9.x/blade#introduction

@stoyan stoyan merged commit 000e22b into master Oct 18, 2022
@stoyan stoyan deleted the glossary branch October 18, 2022 18:31
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.

3 participants