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

Field list : Field name alignment problem #205

Open
NicoPy opened this issue Apr 14, 2020 · 7 comments
Open

Field list : Field name alignment problem #205

NicoPy opened this issue Apr 14, 2020 · 7 comments

Comments

@NicoPy
Copy link
Contributor

NicoPy commented Apr 14, 2020

Using field list like :fieldname: Field content .
This generates a table with the field name in a column and field content in another one.
Field name should be left aligned.
This is especially important when field name is too long. In this case, the first column spans over the second and field content is on a second line. In this situation, the field name is centered in the table.

@alexandrevicenzi
Copy link
Owner

Share a post example and a print of the problem, otherwise I can't help.

@NicoPy
Copy link
Contributor Author

NicoPy commented Apr 22, 2020

The following code

:short 1: short content 1
:short 2: short content 2
:this is a long descriptor: This is a long content that displays on a second line.
:short 3: short content 3
:short 4: short content 4

displays like this :
image

It should display like this :
image

I modified static/stylesheet/style.less by adding the following at the end :

table.field-list td {
	border-top-width: 0px;
	text-align: left;
}

table.field-list th {
	border-top-width: 0px;
	text-align: left;
}

I'm far from a html/css expert so I'm not sure my modification is correct.

@alexandrevicenzi
Copy link
Owner

This theme was designed with markdown in mind, what feature is this in rst?

@NicoPy
Copy link
Contributor Author

NicoPy commented May 24, 2020

This is field-lists.
I use it for two columns lists of items.

@ranjal007
Copy link

Hey @NicoPy can you please assign this issue to me for hacktoberfest. I think I can resolve this issue.

@NicoPy
Copy link
Contributor Author

NicoPy commented Oct 2, 2021

@ranjal007 I think I can't do that as I'm not the owner.

@alexandrevicenzi
Copy link
Owner

@ranjal007 done, feel free to submit your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants