优化样式和布局,调整基因时序分析页面的标题和图例位置,更新导航容器样式以适应全宽显示。

This commit is contained in:
wjsjwr 2025-07-26 20:23:29 +08:00
parent edb72bc526
commit 2291f59144
2 changed files with 12 additions and 11 deletions

View File

@ -512,8 +512,8 @@ const TemporalAnalysis: React.FC = () => {
{/* 基因时序分析部分 */} {/* 基因时序分析部分 */}
<div className="visualization-container"> <div className="visualization-container">
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "1rem" }}> <h3 style={{ marginBottom: "1rem", textAlign: "center" }}></h3>
<h3 style={{ margin: 0 }}></h3> <div style={{ display: "flex", justifyContent: "center", alignItems: "center", marginBottom: "1rem" }}>
<select <select
value={selectedGene} value={selectedGene}
onChange={(e) => { onChange={(e) => {
@ -585,14 +585,14 @@ const TemporalAnalysis: React.FC = () => {
lineWidth={3} lineWidth={3}
legends={[ legends={[
{ {
anchor: 'bottom-right', anchor: 'top',
direction: 'column', direction: 'row',
justify: false, justify: false,
translateX: 60, translateX: 0,
translateY: 0, translateY: -30,
itemsSpacing: 1, itemsSpacing: 45,
itemWidth: 50, itemWidth: 70,
itemHeight: 14, itemHeight: 16,
itemDirection: 'left-to-right', itemDirection: 'left-to-right',
itemOpacity: 0.75, itemOpacity: 0.75,
symbolSize: 8, symbolSize: 8,

View File

@ -60,8 +60,9 @@ body {
} }
.nav-container { .nav-container {
max-width: 1200px; /* max-width: 1200px; */
margin: 0 auto; /* margin: 0 auto; */
width: 100%;
padding: 0 1rem; padding: 0 1rem;
display: flex; display: flex;
align-items: center; align-items: center;