Fastapi: Minor CSS bug with codeblock highlighting

Created on 11 Aug 2020  路  3Comments  路  Source: tiangolo/fastapi

Hi, there is a style bug on the online documentation.
The highlighting don't fill all the line when the codeblock have a scrollbar

Screenshot_2020-08-11-17-50-14-572_com opera browser

Unfortunaly I can't try to fix the CSS I don't have computer for a few more weeks

question

All 3 comments

This is a mobile related issue with markdown_extensions, doesn't belongs to FastAPI

We use hl_lines when adding a highlight to a line

Example:

> ``` Python hl_lines="4  9 10 11 12  25 26 27"
> some_code_here
> ```

It adds highlighting to the whole line so the problem probably belongs to markdown_extensions in mkdocs.yml

Oops my Bad,
I'll open an issue on the mkdocs repo

Thanks for the help here @ycd ! :clap: :bow:

Thanks for reporting back and closing the issue @flapili :+1:

Was this page helpful?
0 / 5 - 0 ratings