Skip to content

Commit

Permalink
[docs] Fix permalink css styling on Firefox. (#19388)
Browse files Browse the repository at this point in the history
This has been bothering me. The display has always looked correct in
Chrome, but Firefox splits the icon (technically the text `icon` using
the `Material Icons` font-family, not an actual image) over two lines:

Before:

![image](https://github.com/user-attachments/assets/3d32c898-e056-4881-8d77-c930e3e1404b)


After: 

![image](https://github.com/user-attachments/assets/561df6e4-59fe-4ec0-8e3c-ad0289da42c7)

I found two possible fixes: set `letter-spacing: initial;` or `display:
inline;`. I don't have a preference.
  • Loading branch information
ScottTodd authored Dec 6, 2024
1 parent d2c8e5e commit ab15773
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/website/docs/assets/stylesheets/iree.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
position: relative;
top: 5px;
left: 0;
display: inline;
}

pre.highlight code {
Expand Down

0 comments on commit ab15773

Please sign in to comment.