fix: Fix some styles about monitor charts

1. Remove chart's style width=100%, because <Row> was block element yet
2. Fix margin style of nodes select component because it doesn't work

Change-Id: I7219dfd1f6a0123ec44366148d5763b9a3311183
This commit is contained in:
xusongfu 2023-10-27 16:31:39 +08:00
parent af9f6b74cc
commit af379a457c
2 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ const Charts = (props) => {
function renderTopCards() {
return (
<Row gutter={[16, 16]} style={{ width: '100%' }}>
<Row gutter={[16, 16]}>
{topCardList.map((chartProps) => {
if (chartProps.hidden) {
return null;

View File

@ -2,7 +2,6 @@ import { Select } from 'antd';
import { get } from 'lodash';
import React, { useState } from 'react';
import styles from '../../style.less';
const { Option } = Select;
const useNodeSelect = (defaultNode) => {
@ -17,7 +16,7 @@ const useNodeSelect = (defaultNode) => {
const Nodes = () => {
const key = getKey();
return (
<div className={styles.header}>
<div style={{ marginBottom: 16 }}>
<span style={{ color: 'black', fontSize: 14, fontWeight: 400 }}>
Node:{' '}
</span>