Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit efda73c

Browse filesBrowse files
Sean PrashadSean Prashad
Sean Prashad
authored and
Sean Prashad
committed
Fix layout "jump" when switching between tabs
On the "Question List" tab, the content will "jump" a few pixels to the left due to the content exceeding the page height (ie. it has a lot of rows, which our table does). As a result, we need to account for this by calculating the left and right margin when the user switches to the respective tab, whether the scroll bar is present or not. See https://stackoverflow.com/questions/9341465/prevent-a-centered-layout-from-shifting-its-position-when-scrollbar-appears#answer-42987298
1 parent f018370 commit efda73c
Copy full SHA for efda73c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/components/styles.scss

Copy file name to clipboardExpand all lines: src/components/styles.scss
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');
22

33
.App {
4-
margin: 0;
4+
margin-left: calc(100vw - 100%);
5+
margin-right: 0;
56

67
font-family: 'Open Sans', sans-serif;
78
-webkit-font-smoothing: antialiased !important;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.