Skip to content

Commit

Permalink
add an new classname when use uiEmbed mode
Browse files Browse the repository at this point in the history
add an new classname when use uiEmbed mode

Signed-off-by: leroy-chen <leroy.chen.179@gmail.com>
  • Loading branch information
leroy-chen committed Jul 16, 2021
1 parent 77335fe commit 3c2ca1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/jaeger-ui/src/components/App/Page.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ limitations under the License.
right: 0;
top: var(--nav-height);
}

.Page--content--embedded {
display: flex;
flex-direction: column;
left: 0;
min-height: calc(100% - var(--nav-height));
position: absolute;
right: 0;
}
2 changes: 1 addition & 1 deletion packages/jaeger-ui/src/components/App/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class PageImpl extends React.Component<TProps> {

render() {
const { embedded } = this.props;
const contentCls = cx({ 'Page--content': true });
const contentCls = cx({ 'Page--content': !embedded, 'Page--content--embedded': embedded });
return (
<div>
<Helmet title="Jaeger UI" />
Expand Down

0 comments on commit 3c2ca1d

Please sign in to comment.