Skip to content

Commit

Permalink
adjust styling for request details
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi-sl committed Aug 9, 2024
1 parent e2cf7d7 commit 9757751
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/Components/Common/Tooltip/Tooltip.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
display: inline-block;
background-color: $brand-primary-dark-gray;
color: $white-100;
font-size: $font-size-small;
padding: $size-xs $size-xs-s;
border: $border;
border-radius: $border-radius-base;
Expand Down
1 change: 1 addition & 0 deletions src/Components/NetworkTable/NetworkTable.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
overflow-x: hidden;
grid-template-columns: subgrid;
grid-column: span 8 / span 8;
outline: none;
}

.network-table-row {
Expand Down
15 changes: 8 additions & 7 deletions src/Components/ReqDetail/Headers.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

.header-info {
border-bottom: 1px solid $white-90;
margin-bottom: $size-m;
padding-bottom: $size-m;
padding-bottom: $size-xs-s;
margin-bottom: $size-xs-s;

&:last-child {
margin-bottom: 0;
Expand All @@ -27,13 +27,13 @@

.caret-icon {
display: inline-block;
height: $size-xs * 2;
height: $size-xs-s;
transform: translateY(-1px) translateX(-5px) rotate(90deg);
width: $size-xs * 2;
width: $size-xs-s;
}

.encode-url {
margin-left: $size-xs * 2;
margin-left: $size-xs-s;
font-size: $font-size-small;
}

Expand All @@ -43,12 +43,13 @@
}

.header-detail {
padding: $size-m 0 0 $size-m;
padding-top: $size-xs-s;
padding-left: $size-xs-s;

.info-row {
margin: 0;
font-size: $font-size-small;
padding-bottom: $size-xs-s;
padding-bottom: $size-xs;

&:last-child {
padding-bottom: 0;
Expand Down
1 change: 1 addition & 0 deletions src/Containers/MainContainer.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
.main-container {
display: flex;
height: 100%;
width: 100%;
overflow: auto;
}
2 changes: 1 addition & 1 deletion src/Containers/NetworkTableContainer.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

&.limited-cols {
grid-template-columns: 100%;
max-width: $name-col-width;
width: 30%;
}
}
6 changes: 4 additions & 2 deletions src/Containers/ReqDetailContainer.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $close-button-width: 35px;
$tab-height: 35px;

.req-detail-container {
flex: 1 1 auto;
width: 70%;
height: 100%;
overflow: auto;
background: $white-100;
Expand All @@ -20,6 +20,7 @@ $tab-height: 35px;
color: $white-33;
border: 0;
border-bottom: 2px solid transparent;
padding: $size-xs-s $size-s $size-xs;

&:hover {
text-decoration: none;
Expand All @@ -39,6 +40,7 @@ $tab-height: 35px;
cursor: pointer;
background: transparent;
border: 0;
outline: none;

.close-icon {
height: $size-xs-s;
Expand All @@ -59,7 +61,7 @@ $tab-height: 35px;
.tabs-container {
display: flex;
width: 100%;
padding: $size-m;
padding: $size-s $size-m;
height: calc(100% - #{$tab-height});
overflow: auto;
}
Expand Down
2 changes: 0 additions & 2 deletions src/state/network/NetworkProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { reducer, initialState as defaultState } from './reducer';
import { updateData, fetchFile, updateScrollToIndex } from './actions';
import { NetworkContext } from './Context';
import { findRequestIndex } from '../../utils';
import { ROW_ID_PREFIX } from '../../constants';

const NetworkProvider = (props) => {
const {
Expand All @@ -32,7 +31,6 @@ const NetworkProvider = (props) => {
onRequestSelect,
};
const value = useMemo(() => [state, dispatch, callbacks], [state]);
const selectedReqIndex = value[0].get('selectedReqIndex');
const requestData = value[0].get('data');
const showReqDetail = value[0].get('showReqDetail');
const actualData = value[0].get('actualData');
Expand Down
3 changes: 0 additions & 3 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ $size-xxxl: $size-base * 11; // 44px;
brandBlue: $brand-blue;
}

// width/height of container
$name-col-width: 300px;

// borders
$border-color: #DBE0EA;
$border: 1px solid $border-color;
Expand Down

0 comments on commit 9757751

Please sign in to comment.