Commit 80886283 by DaiJiezhang

Refine phone dialog and styles

parent 4fa4ae75
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<title>学有为资产管理台</title> <title>学有为资产管理台</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230f766e'/%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-size='26' font-family='Arial' fill='white'%3EXY%3C/text%3E%3C/svg%3E" /> <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230f766e'/%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-size='26' font-family='Arial' fill='white'%3EXY%3C/text%3E%3C/svg%3E" />
<link rel="stylesheet" href="node_modules/element-plus/dist/index.css" /> <link rel="stylesheet" href="node_modules/element-plus/dist/index.css" />
<link rel="stylesheet" href="styles-v2.css?v=20260707" /> <link rel="stylesheet" href="styles-v2.css?v=20260708b" />
</head> </head>
<body> <body>
......
...@@ -1372,3 +1372,207 @@ ...@@ -1372,3 +1372,207 @@
font-size: 13px; font-size: 13px;
color: #111827; color: #111827;
} }
/* =========================================================
Phone Card Add/Edit Dialog
Fixed header / footer, scrollable body, compact layout.
Uses Element Plus components and project color tokens only.
========================================================= */
/* Dialog shell: flex column, max 80vh */
.phone-form-dialog {
max-height: 80vh;
display: flex;
flex-direction: column;
margin: var(--el-dialog-margin-top, 15vh) auto 50px;
overflow: hidden;
border-radius: 12px;
}
/* Header: fixed, compact */
.phone-form-dialog .el-dialog__header {
padding: 14px 20px 12px;
margin-right: 0;
border-bottom: 1px solid #f0f0f0;
flex-shrink: 0;
}
/* Body: scrollable middle area */
.phone-form-dialog .el-dialog__body {
padding: 16px 20px 8px;
flex: 1;
min-height: 0;
overflow-y: auto;
}
/* Footer: fixed, light background to separate from content */
.phone-form-dialog .el-dialog__footer {
padding: 10px 20px 14px;
border-top: 1px solid #f0f0f0;
background: #fafbfc;
flex-shrink: 0;
}
.phone-form-dialog__title {
font-size: 16px;
font-weight: 600;
color: #1f2937;
line-height: 1.4;
}
/* Compact form-item vertical rhythm */
.phone-form-dialog__form .el-form-item {
margin-bottom: 14px;
}
.phone-form-dialog__form .el-row:last-child .el-form-item {
margin-bottom: 0;
}
/* Section: grouped blocks with left accent bar header */
.phone-form-dialog__section {
margin-bottom: 18px;
}
.phone-form-dialog__section:last-child {
margin-bottom: 12px;
}
.phone-form-dialog__section-title {
position: relative;
padding-left: 10px;
margin-bottom: 14px;
font-size: 13px;
font-weight: 600;
color: #1f2937;
line-height: 1;
user-select: none;
}
.phone-form-dialog__section-title::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 12px;
background: #2563eb;
border-radius: 2px;
}
/* Switch field: toggle + trailing status text */
.phone-form-dialog__switch {
display: flex;
align-items: center;
gap: 8px;
height: 32px;
}
.phone-form-dialog__switch-status {
font-size: 12px;
color: #9ca3af;
line-height: 1.5;
white-space: nowrap;
transition: color 0.2s ease;
}
.phone-form-dialog__switch-status.is-on {
color: #2563eb;
}
/* Image field: compact block, ~100px total height */
.phone-form-dialog__image-block {
width: 100%;
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px 12px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 6px;
}
.phone-form-dialog__image-toolbar {
display: flex;
align-items: center;
gap: 10px;
}
.phone-form-dialog__image-hint {
font-size: 12px;
color: #9ca3af;
line-height: 1;
}
.phone-form-dialog__image-list {
display: flex;
gap: 8px;
flex-wrap: wrap;
min-height: 64px;
}
.phone-form-dialog__image-item {
position: relative;
width: 64px;
height: 64px;
border-radius: 6px;
overflow: hidden;
border: 1px solid #e5e7eb;
background: #fff;
flex: 0 0 auto;
}
.phone-form-dialog__image-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.phone-form-dialog__image-remove {
position: absolute;
top: 2px;
right: 2px;
width: 18px;
height: 18px;
padding: 0;
border: none;
border-radius: 50%;
background: rgba(17, 24, 39, 0.72);
color: #fff;
font-size: 12px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s ease;
}
.phone-form-dialog__image-remove:hover {
background: rgba(17, 24, 39, 0.92);
}
.phone-form-dialog__image-empty {
width: 64px;
height: 64px;
border-radius: 6px;
border: 1px dashed #d1d5db;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
color: #c0c4cc;
font-size: 12px;
cursor: default;
user-select: none;
}
/* Footer: right-aligned action buttons */
.phone-form-dialog__footer {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment