feat(账户余额): 扩展总览页面宽屏布局 (#1291)
This commit is contained in:
parent
5f24bf4fcf
commit
2d53ddc943
@ -671,12 +671,12 @@ export default {
|
||||
return this.fullTrendRows;
|
||||
},
|
||||
chart() {
|
||||
const width = 1000;
|
||||
const height = 330;
|
||||
const width = 1400;
|
||||
const height = 360;
|
||||
const plotLeft = 72;
|
||||
const plotRight = 978;
|
||||
const plotRight = 1378;
|
||||
const plotTop = 26;
|
||||
const plotBottom = 262;
|
||||
const plotBottom = 292;
|
||||
const rows = this.visibleRows;
|
||||
|
||||
if (!rows.length) {
|
||||
@ -1093,9 +1093,9 @@ export default {
|
||||
--trend-blue-soft: #eff6ff;
|
||||
--trend-green: #16a34a;
|
||||
--trend-red: #dc2626;
|
||||
width: min(100%, 1080px);
|
||||
width: min(100%, 1920px);
|
||||
margin: 0 auto;
|
||||
padding: 1.25rem 1rem 2rem;
|
||||
padding: 1.25rem 1.15rem 2rem;
|
||||
color: var(--trend-ink);
|
||||
font-family: "JetBrains Mono", "Microsoft YaHei", "PingFang SC", monospace;
|
||||
}
|
||||
@ -1290,13 +1290,13 @@ export default {
|
||||
.trend-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: .75rem;
|
||||
gap: .9rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.trend-card {
|
||||
min-width: 0;
|
||||
min-height: 7.3rem;
|
||||
padding: .9rem 1rem .85rem;
|
||||
padding: 1rem 1.15rem .9rem;
|
||||
border: 1px solid var(--trend-line);
|
||||
border-radius: .6875rem;
|
||||
background: var(--trend-surface);
|
||||
|
||||
@ -98,6 +98,16 @@ class StoreReceivingBalanceOverviewTest extends TestCase
|
||||
$this->assertStringContainsString('{{ dailyNote }}', $source);
|
||||
}
|
||||
|
||||
public function test_overview_uses_the_available_content_width_for_the_wide_dashboard(): void
|
||||
{
|
||||
$source = $this->overviewSource();
|
||||
|
||||
$this->assertStringContainsString('width: min(100%, 1920px);', $source);
|
||||
$this->assertStringContainsString('const width = 1400;', $source);
|
||||
$this->assertStringContainsString('const height = 360;', $source);
|
||||
$this->assertStringContainsString('padding: 1.25rem 1.15rem 2rem;', $source);
|
||||
}
|
||||
|
||||
public function test_overview_tab_is_placed_before_taobao_alipay_navigation(): void
|
||||
{
|
||||
$navigation = file_get_contents(__DIR__ . '/../../../config/business_navigation.php');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user