feat(web): add Ant workspace tabs and harden page chrome
Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,8 +15,28 @@ const GRAY_200 = '#e5e7eb';
|
||||
export const antdTheme = {
|
||||
token: {
|
||||
colorPrimary: '#10897d',
|
||||
/**
|
||||
* Ant's generated tint for #10897d is a muddy grey-green; pin the light
|
||||
* brand tints (main.css --accent-subtle / --accent-soft) for selected items.
|
||||
*/
|
||||
colorPrimaryBg: '#eef8f7',
|
||||
colorPrimaryBgHover: '#d0ebe8',
|
||||
controlItemBgActive: '#eef8f7',
|
||||
controlItemBgActiveHover: '#e2f3f1',
|
||||
fontFamily: '"IRANSans", Tahoma, sans-serif',
|
||||
|
||||
/**
|
||||
* Ant's default heading scale (38/30/24/20/16) is sized for Latin
|
||||
* marketing pages; IRANSans runs large, so page titles (level 3) were 24px.
|
||||
* Compact app scale: page title 20, section 16, card title 14.
|
||||
*/
|
||||
fontSizeHeading1: 28,
|
||||
fontSizeHeading2: 24,
|
||||
fontSizeHeading3: 20,
|
||||
fontSizeHeading4: 16,
|
||||
fontSizeHeading5: 14,
|
||||
fontWeightStrong: 600,
|
||||
|
||||
/** Page / subtle surface fill */
|
||||
colorBgLayout: GRAY_50,
|
||||
colorFillQuaternary: GRAY_50,
|
||||
@@ -78,6 +98,10 @@ export const antdTheme = {
|
||||
},
|
||||
Select: {
|
||||
colorBorder: GRAY_200,
|
||||
optionSelectedBg: '#eef8f7',
|
||||
optionSelectedColor: '#0a5c54',
|
||||
optionSelectedFontWeight: 600,
|
||||
optionPadding: '7px 12px',
|
||||
},
|
||||
Form: {
|
||||
itemMarginBottom: 18,
|
||||
|
||||
Reference in New Issue
Block a user