I came across /admin/structure/views and saw that the view names in that list are visually way too big in my opinion (they are even bigger than the list headline 'view name' row headline). It's a h3 causing that issue. See screenshot attached.

view names too big

Should we change this or is that intended?
How should it look like?

I would suggest that it should look like the block region name here /admin/structure/block

Comments

fhaeberle created an issue. See original summary.

fhaeberle’s picture

Issue summary: View changes
fhaeberle’s picture

Issue summary: View changes
quiron’s picture

Component: Code » Needs design

I went through all the figma document and I don't find a reference to a similar layout. So marking it as Needs design.

huzooka’s picture

Status: Needs work » Active

Issue does not have patches, let's change it to Active.

fhaeberle’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

Doing some research on this, I found out that the h3 causing the big text rendering is default layout in core. The specific file can be found under:

core/themes/stable/templates/admin/views-ui-views-listing-table.html.twig

I altered this template file and added it to our own admin folder - it works, but I don't know if that's the correct way here.
Should we open an issue for that in core and try to fix it there? Ideas appreciated.

Changes in this patch:
- adding altered views ui template

fhaeberle’s picture

Component: Needs design » Code
lauriii’s picture

Title: resize view names on view list » Resize view names on view list
Issue tags: +Needs upstream bugfix

I think at least visually it would make sense to make this change. This does change the structure, but since we don't use h3 for the key columns of other tables such as the node table, I think this should be fine. This happens in Seven as well, so I think we should open an issue for this in core. We should also add a todo to whatever workaround we create here to remove it after the upstream bug has been fixed.

anevins’s picture

I side with changing this from using a H3 (or a heading at all) because it is structured in a table and that's where the meaning is.

fhaeberle’s picture

@laurriii I'm going to open an issue for that in core and try to fix it there.
@anevins For sure. Thanks for your thoughts.

fhaeberle’s picture

huzooka’s picture

Category: Bug report » Feature request
thamas’s picture

Status: Needs review » Reviewed & tested by the community

Tested manually, the patch from #6 and it works well.

What we may miss yet is to add a todo to remove this template when the related core issue is fixed as Laurii suggested it in #8. I do not know where that todo should be written.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work

I think adding a todo message is a great suggestion @thamas! We could add that in the @file docblock after the @see. We should link it to the Drupal Core issue so it can be tracked.

thamas’s picture

Status: Needs work » Needs review
StatusFileSize
new1.87 KB
new548 bytes

Laurii I'm glad you like it because it was your idea to add a @todo! :D

Thanks for guiding about where it should have been added!

fhaeberle’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! From my point of view RTBC :)

  • lauriii committed 1d7eb4c on 8.x-1.x
    Issue #3056395 by fhaeberle, thamas: Resize view names on view list
    
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

This is a nice improvement! Thank you folks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.