Skip to content

Commit

Permalink
feat(web): adjust yaml dialog top offset
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklai committed Aug 17, 2022
1 parent 5851b67 commit 8663f61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/web/src/pages/Recommend/RecommendationRule/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export const SelectTable = () => {
<p>{t('推荐规则将从API Server中删除,且无法恢复')}</p>
</Dialog>
<Dialog
top='15vh'
width={850}
visible={yamlDialogVisible}
onClose={() => {
Expand Down
1 change: 1 addition & 0 deletions pkg/web/src/pages/Recommend/ReplicaRecommend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const SelectTable = () => {
<p>{t('推荐规则将从API Server中删除,且无法恢复')}</p>
</Dialog>
<Dialog
top='15vh'
width={850}
visible={yamlDialogVisible}
onClose={() => {
Expand Down
3 changes: 2 additions & 1 deletion pkg/web/src/pages/Recommend/ResourcesRecommend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const SelectTable = () => {
const [yamlDialogVisible, setYamlDialogVisible] = useState<boolean>(false);
const [currentSelection, setCurrentSelection] = useState<RecommendationSimpleInfo | null>(null);
const [commandDialogVisible, setCommandDialogVisible] = useState<boolean>(false);

const navigate = useNavigate();
const [selectedRowKeys, setSelectedRowKeys] = useState<(string | number)[]>([0, 1]);
const [visible, setVisible] = useState(false);
Expand Down Expand Up @@ -247,6 +247,7 @@ export const SelectTable = () => {
<p>{t('推荐规则将从API Server中删除,且无法恢复')}</p>
</Dialog>
<Dialog
top='15vh'
width={850}
visible={yamlDialogVisible}
onClose={() => {
Expand Down

0 comments on commit 8663f61

Please sign in to comment.