-
-
Notifications
You must be signed in to change notification settings - Fork 986
New layout for topiclist lists #1331
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
Conversation
Can you provide screenshots of new vs old? |
Normal width: http://www.trushkin.biz/temp/Screen%20Shot%202013-04-11%20at%2000.29.44%20.png Lists look exactly the same, the only difference is scaling. |
I like this implementation, |
Yes, it does not get deformed because with this solution combined width of all columns is always 100% of container's width. |
$template->assign_vars(array( | ||
strtoupper($block) . '_COLS' => count($notification_methods), | ||
strtoupper($block) . '_COLS1' => count($notification_methods) + 1, | ||
strtoupper($block) . '_COLS2' => count($notification_methods) + 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
, at the end of this line,
also use sizeof() once and put it in a variable?
@nickvergessen Fixed |
Forgot about RTL stuff. Also removed class name related to this PR that isn't used. |
@@ -43,7 +43,7 @@ public function test_user_subscriptions($checkbox_name, $expected_status) | |||
$crawler = $this->request('GET', 'ucp.php?i=ucp_notifications&mode=notification_options'); | |||
$this->assert_response_success(); | |||
|
|||
$cplist = $crawler->filter('.cplist'); | |||
$cplist = $crawler->filter('.table1'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going from a meaningful to a meaningless class name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going from list to a table. Nether old nor new class name is specific to that page. There was one .cplist list, now there is one .table1 table.
This goes into 3.2. |
It shouldn't. This PR is basically a bug fix for 2 issues:
Do you want to release 3.1 with bugs? |
Why hasn't either of those issues been reported as a bug? |
Can't you fix the notification settings layout separately - that would make this PR smaller and each of them easier to review and understand all the implications? |
Notification settings bug was discovered only when I was working on this PR. It is related to issue this PR solves, so I thought it would be ok to fix them both. I'll create a ticket and move it to separate PR. As for topic lists layout, while it is technically a bug, it was done intentionally during 3.0 development because of limitations of very old browsers (IE6 and below) that were actual back then. So I'm not sure if it should be treated as bug or improvement. |
<li class="row<!-- IF notification_types.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->"> | ||
<dl> | ||
<dt> | ||
<table class="table1" cellspacing="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is cellspacing being used in 2013?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cellspacing is actually HTML5 invalid too. (of course, the adm/style files are littered with table cellspacing and border attributes, so somebody may wanna look at removing that one day too)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be changed, but that would require changing all tables. This code uses exactly same table code as other tables in prosilver.
If there is a bug being fixed here, there should be aticket of type "bug" filed, with an appropriate bug description. "Currently forum columns use mix of percentages and pixels for width and margin/padding, causing columns to stretch at different resolutions and at low resolution break layout." - what resolutions? was this working before? if yes in which version? etc. |
Marked as WIP because notification settings fixes were moved to separate pull request and should be removed from this PR. |
Removed notification settings changes because they are now in separate PR and unmarked as WIP. |
PHPBB3-11489
Squashed commits and rebased on latest develop, so notification settings changes would be included from develop. |
|
||
dl.icon dt, dl.icon dd { | ||
min-height: 40px; | ||
*min-height: 32px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go in tweaks.css (along with the similar hacks)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'll move it there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
PHPBB3-11489
@@ -29,4 +29,21 @@ dl.details dd { | |||
/* Headerbar height fix for IE7 */ | |||
#site-description p { | |||
*margin-bottom: 1.0em; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please re-add newline at end of file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are reading it wrong. There was no newline character at the end of tweaks.css, I've added new line and then code after it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vjacheslav is correct.
Everything else looks good to me, I can merge this after that's fixed. |
} | ||
|
||
dl.icon dt, dl.icon dd { | ||
min-height: 40px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cyberalien I think this is problematic... It just looks weird now, the topic rows are all a bit taller than usual and the content is misaligned vertically in them towards the top as a result, and topic icons are now positioned to the bottom left... Removing this restores the original height and topic-icon locations to the way they have always been.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. It could be decreased, but it is needed to prevent row from being smaller than icon height.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about 35px ? Looks good at 35 IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you gonna adjust it, or were you expecting me to ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do it or you can submit patch, doesn't matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave it to you if you probably still have this branch active in your repos :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and made a #1451
New layout for .topiclist lists
Adjustments for .html files include:
RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=108&t=44139
Ticket: http://tracker.phpbb.com/browse/PHPBB3-11489