-
Notifications
You must be signed in to change notification settings - Fork 973
Conversation
Addresses #10263 Auditors: Test Plan: 1. Open about:preferences#search 2. Make sure the custom width is applied to the table 3. Open about:preferences#sync 4. Make sure the custom width is applied to the table 5. Open about:preferences#extensions 6. Make sure '-webkit-fill-available' is applied to the table
return <table | ||
{...this.getTableAttributes()} | ||
className={cx({ | ||
sort: !this.sortingDisabled, | ||
sortableTable: !this.props.overrideDefaultStyle, |
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.
overrideDefaultStyle
is not used anywhere, so replaced it with true
. To override the default style, instead you could use tableClassNames={css(styles.foo)}
.
The class sortableTable
is used heavily for automated tests so it is not removed yet.
// TODO (Suguru): refactor sortableTable.js to remove !important | ||
width: '100% !important', | ||
marginBottom: '0 !important' | ||
}, |
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.
table
is no longer required thanks to fillAvailable
. Also margin is no longer specified by default.
The table as such does not require margin in the same way as the buttons do not. If margin is required, it should be specified as an option; otherwise the margin should be added to the other element which exists around the table.
borderCollapse: 'collapse', | ||
border: 'none', | ||
margin: '0 auto' | ||
}, |
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.
@@ -590,10 +590,8 @@ const styles = StyleSheet.create({ | |||
}, | |||
|
|||
devices__devicesList: { | |||
// TODO: refactor sortableTable to remove !important | |||
marginBottom: `${globalStyles.spacing.dialogInsideMargin} !important`, | |||
boxSizing: 'border-box', |
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.
@@ -247,8 +247,6 @@ input[type="checkbox"][disabled] { | |||
} | |||
|
|||
table.sortableTable { | |||
width: 704px; |
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.
width: 704px
is used on about:preferences#search
only so replaced it with sortableTable_searchTab
. See above.
@@ -15,11 +15,6 @@ table.sort { | |||
} | |||
|
|||
table.sortableTable { | |||
width: 100%; |
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 is replaced with https://github.com/brave/browser-laptop/pull/10265/files#diff-159ff36704e059402c3f17fb8a35a6fcR489. The width is no longer specified by default (since it had to be overwritten with !important
, which is redundant).
width: 100%; | ||
margin-bottom: 40px; | ||
cursor: default; | ||
border-spacing: 0; |
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.
the 3 properties above were replaced with https://github.com/brave/browser-laptop/pull/10265/files#diff-159ff36704e059402c3f17fb8a35a6fcR481.
I left some comments for code review :-) |
Codecov Report
@@ Coverage Diff @@
## master #10265 +/- ##
==========================================
+ Coverage 52.95% 52.98% +0.03%
==========================================
Files 228 228
Lines 20309 20308 -1
Branches 3254 3255 +1
==========================================
+ Hits 10754 10760 +6
+ Misses 9555 9548 -7
|
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.
ledger table need some tweaks too. will that be addressed with #10238?
This time, unlike With this PR I'm fixing I will tweak stuff Also: #10238 does not polish the ledger table. Instead it fixes the layout of the element named |
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.
cool let's do it ++
thanks for review :-) |
Fixes brave#10434 Follow-up to brave#10265 Auditors: @cezaraugusto Test Plan: 1. Run `npm run add-simulated-synopsis-visits 100` 2. Open about:preferences#payments 3. Pin some sites 4. Make sure the orange border appears on the table
Addresses #10263
Auditors: @cezaraugusto
Test Plan:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests