Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Release a new version of the debugger #3098

Merged
merged 5 commits into from Jun 7, 2017

Conversation

jasonLaster
Copy link
Contributor

  • Updates from the past week
  • Small fixes for the editor footer and a couple small details for tests

@codecov
Copy link

codecov bot commented Jun 6, 2017

Codecov Report

Merging #3098 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3098   +/-   ##
=======================================
  Coverage   66.28%   66.28%           
=======================================
  Files          76       76           
  Lines        2714     2714           
  Branches      549      549           
=======================================
  Hits         1799     1799           
  Misses        915      915
Impacted Files Coverage Δ
src/components/Outline.js 76.66% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdccd0a...843108b. Read the comment docs.

@@ -1,6 +1,9 @@
.editor-wrapper {
--debug-line-background: rgba(226, 236, 247, 0.5);
--debug-line-border: rgb(145, 188, 219);
--editor-searchbar-height: 27px;
--editor-second-searchbar-height: 27px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know this is copy pasted, but do we need two separate declarations of the same value? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not. that can be tweaked when we have a function search modal :)

Copy link
Contributor

@codehag codehag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good!

@@ -50,7 +50,8 @@ function getHiddenTabs(sourceTabs: SourcesList, sourceTabEls) {
return sourceTabs.filter((tab, index) => {
// adding 10px helps account for cases where the tab might be offset by
// styling such as selected tabs which don't have a border.
return sourceTabEls[index].getBoundingClientRect().top > tabTopOffset + 10;
const el = sourceTabEls[index];
return el && el.getBoundingClientRect().top > tabTopOffset + 10;
Copy link
Contributor

@codehag codehag Jun 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! i would split this up more even, so that we know what is happening.

const element = sourceTabEls[index];
const hasTopOffset = (el) => (el.getBoundingClientRect().top > tabTopOffset + 10)
return element && hasTopOffset(element);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a good idea. I took it a couple step further lol.

@jasonLaster jasonLaster merged commit 1278f11 into firefox-devtools:master Jun 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants