Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jul 2014 at 05:08 UTC
Updated:
17 Apr 2015 at 07:56 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #1
nitishchopra commentedThe type field is misaligned when we add fields in a default view named content.
Comment #2
lokapujyaThis happened in: #1832872: Fix broken Views UI search box/filtering Referencing that issue because it gives some context to this issue.
This patch will put it back closer to how it was. But, better would be to make it responsive so that the form items can all fit on one line, and then stack when there isn't enough space. Ideally, the labels will stay on the same line as the associated form item.
Comment #3
GemVinny commentedComment #4
GemVinny commentedHere's a patch for styling.
Comment #5
GemVinny commentedComment #6
GemVinny commentedChanges to make the fields online. Responsive and pixel perfect needs work.
Comment #9
GemVinny commentedI have changed RTL as well.
Comment #10
rteijeiro commentedNow it looks pretty bad-ass. Thanks @lilGemVinny
Comment #11
herom commentedThis is how it looks like for me, and my screen width is 1280px.
I agree this is still an improvement than before, but we might want to do better.
That's not a good place to add that. It's between a rule and its RTL version. Move it to after that. Also, the rule you added needs an RTL version too.
Edit: There is also some extra whitespace over the fields, that we can get rid of, i.e. :
Comment #12
GemVinny commentedComment #13
GemVinny commentedGood point @hermon
I have made your suggested changes.
Does it look any better for you? I have attached a screenshot of what it looks like for me.
Comment #14
GemVinny commentedHere's the patch...
Comment #15
GemVinny commentedInterdiff !!!
Comment #16
herom commentedThanks. That fixes it for the 1280px screen width.
There was a small RTL issue, and a missing space, that I fixed.
Here's an RTL screenshot:
Comment #18
herom commentedoops! wrong patch.
Comment #19
jhedstromPatch in #18 still applies and resolves the issue in Chrome. This could use verification in a few other browsers I think.
I've added a beta phase evaluation to the issue summary.
Comment #20
lewisnymanThe problem with this patch is it makes some major changes to system.module.css which means it could cause regressions everywhere. Can we restrict the changes to just the views ui css?
Comment #21
lokapujyaWell, I was surprised to find out that the views-ui CSS doesn't get loaded on the /nojs pages. Is that intentional? See: /admin/structure/views/nojs/add-handler/comments_recent/block_1/field
Search for .css, and most CSS that is in the overlay version, is not on the /nojs page.
Since, the prior patch was only making select box labels into blocks and not the Search field, I assumed that we didn't mean to do change the nojs page and so I further scoped the CSS within ".views-ui-dialog". Although, now that the CSS is in the views-ui it wouldn't affect the /nojs page anyway since the CSS doesn't get loaded anyway.
Comment #22
idebr commentedI did a manual test for the filters in the 'Add fields' dialog.
.form--inlinefor this pattern to be applied in #2333719: Abstract Views Exposed Form styling out into a reusable class. Instead of adding more CSS, let's clean up the markup and existing CSS so this pattern can be applied. For an example implementation, have a look at the filter options on /admin/contentComment #23
rakesh.gectcr@idebr. After applying the patch from https://www.drupal.org/node/2429457
Its look like..
Comment #24
lokapujyaTrying to take the direction suggested by idebr in #22.
Comment #25
sabreena commented@lokapujya: Tested the patch (https://www.drupal.org/files/issues/2296261-24.patch) on local, the alignment of fields look good. However spacing between the fields is inconsistent. Attaching a shot.
Comment #26
lokapujyaWhat browser were you using? It looks good on Mac Chrome and Firefox.
Comment #27
sabreena commentedI am also using Mac(10.9.5) Chrome and Firefox. The attached shot is of chrome (Version 40.0.2214.115).
Comment #28
manjit.singhTested patch locally and attaching some screenshots.
@Sabreena @lokapujya : Fields looks good in Chrome-40.0 (windows 8). But space is inconsistent in Arabic. Please check screenshots for Arabic as well.
Comment #29
lokapujyaOne possibility is to move the search box to be the last element so that the two dropdowns are next to each other. Then the spacing might not be as much of a concern. If someone else wants to fix the spacing, go ahead; I was only interested in fixing the alignment.
Comment #30
sabreena commentedComment #31
rteijeiro commentedJust fixed coding standards for arrays.
Comment #32
lduerig commentedHere's a patch that fixes the spacing, but I never had all fields in one line for RTL either before or after applying previous patches. Using Mac with Chrome. LTR looks fine, but RTL breaks onto two lines for me. Can someone please test this for RTL and verify whether or not fields are breaking onto two lines?
--SEE #34 for patch and interdiff
Comment #33
lduerig commentedAfter patch in #34, this is what I find for LTR vs RTL. RTL was behaving the same before patching.
Comment #34
lduerig commentedPrevious patch was empty. This is replacement for #32.
Comment #36
manjit.singh@lduerig I think fields are still aligned, Please check screenshot captured after applying #34 patch.
Comment #37
rteijeiro commentedLooks good to me!
Comment #38
rteijeiro commentedProvided screenshots
Fields LTR
Fields RTL
Comment #39
alexpottCSS is not frozen in beta. Committed 2004f74 and pushed to 8.0.x. Thanks!
Comment #42
martin107 commentedThis issue inserted bug.
https://www.drupal.org/node/2472751