fix: optimize tooltips style (#365)

This commit is contained in:
Fine0830 2024-01-18 11:43:07 +08:00 committed by GitHub
parent 63e01540dc
commit f76500bb6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 42 additions and 35 deletions

View File

@ -743,6 +743,6 @@ limitations under the License. -->
.hierarchy-related { .hierarchy-related {
height: 600px; height: 600px;
width: 600px; width: 600px;
overflow: auto; overflow: hidden;
} }
</style> </style>

View File

@ -186,7 +186,9 @@ limitations under the License. -->
if (!props.calls.length) { if (!props.calls.length) {
return; return;
} }
setTimeout(() => {
init(); init();
}, 10);
}, },
); );
</script> </script>
@ -196,6 +198,7 @@ limitations under the License. -->
fill: var(--sw-topology-color); fill: var(--sw-topology-color);
font-size: 12px; font-size: 12px;
opacity: 0.9; opacity: 0.9;
z-index: 1;
} }
.hierarchy-services-svg { .hierarchy-services-svg {

View File

@ -171,20 +171,5 @@ limitations under the License. -->
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.hierarchy-services-topo { @import url("../style.scss");
position: relative;
}
.el-loading-spinner {
top: 30%;
}
#popover {
position: absolute;
visibility: hidden;
padding: 5px;
border: var(--sw-topology-border);
border-radius: 3px;
background-color: $theme-background;
}
</style> </style>

View File

@ -180,20 +180,5 @@ limitations under the License. -->
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.hierarchy-services-topo { @import url("../style.scss");
position: relative;
}
.el-loading-spinner {
top: 30%;
}
#popover {
position: absolute;
visibility: hidden;
padding: 5px;
border: var(--sw-topology-border);
border-radius: 3px;
background-color: $theme-background;
}
</style> </style>

View File

@ -599,7 +599,7 @@ limitations under the License. -->
.hierarchy-related { .hierarchy-related {
height: 600px; height: 600px;
width: 600px; width: 600px;
overflow: auto; overflow: hidden;
} }
.micro-topo-chart { .micro-topo-chart {

View File

@ -0,0 +1,34 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.hierarchy-services-topo {
position: absolute;
width: 100%;
}
.el-loading-spinner {
top: 30%;
}
#popover {
position: absolute;
visibility: hidden;
padding: 5px;
border: var(--sw-topology-border);
border-radius: 3px;
background-color: var(--theme-background);
z-index: 9999;
}