Commit 65b834c9 by DaiJiezhang

Fix encoding corruptions and refine phone-form-dialog styles

- Fix 4 mojibake instances (UTF-8 to GBK to UTF-8 double encoding)

  - content: dropdown arrow symbol (lines 309, 318)

  - Comment for el-select icon (line 313)

  - Comment for margin reset (line 1006)

- Refactor phone-form-dialog CSS for better modal layout
parent 676a6a17
......@@ -306,16 +306,16 @@
}
.fselect:after {
content: "鈻?;
content: "▼";
color: #9ca3af;
}
/* Custom icon for el-select to match batch action button icon 鈻?*/
/* Custom icon for el-select to match batch action button icon */
.custom-fselect .el-input__suffix-inner > .el-icon > svg {
display: none !important;
}
.custom-fselect .el-input__suffix-inner > .el-icon::before {
content: "鈻?;
content: "▼";
color: #9ca3af;
font-size: 14px;
display: flex;
......@@ -1003,7 +1003,7 @@
fill: currentColor !important;
}
/* 娑堥櫎鍘熸潵鐨勬棫澶栬竟璺濆共鎵?*/
/* 消除原来的外边距 */
.domain-mode .action-dots {
margin: 0;
}
......@@ -1375,448 +1375,124 @@
/* =========================================================
Phone Card Add/Edit Dialog
Fixed header / footer, scrollable body, compact layout.
Uses Element Plus components and project color tokens only.
Fixed header / footer with a scrollable form body.
========================================================= */
.phone-form-dialog-modal .el-overlay-dialog {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 16px;
box-sizing: border-box;
}
/* Dialog shell: flex column, max 80vh */
/* ===== Phone Form Dialog: layered hierarchy + unified controls ===== */
.phone-form-dialog {
.phone-form-dialog-modal .el-dialog {
width: 860px !important;
max-width: calc(100vw - 48px) !important;
height: 620px !important;
max-height: 78vh !important;
max-width: calc(100vw - 32px) !important;
height: 750px !important;
max-height: calc(100vh - 32px) !important;
display: flex;
flex-direction: column;
margin: var(--el-dialog-margin-top, 15vh) auto 50px;
margin: 0 !important;
overflow: hidden;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}
/* Header: fixed, compact */
.phone-form-dialog .el-dialog__header {
padding: 16px 24px 14px;
margin-right: 0;
border-bottom: 1px solid #e5e7eb;
.phone-form-dialog-modal .el-dialog .el-dialog__header {
position: relative;
flex-shrink: 0;
margin-right: 0;
padding: 20px 56px 16px 24px;
background: #fff;
border-bottom: 1px solid #e5e7eb;
}
/* Body: scrollable middle area */
.phone-form-dialog .el-dialog__body {
padding: 16px 24px;
.phone-form-dialog-modal .el-dialog .el-dialog__headerbtn {
top: 19px;
right: 16px;
width: 32px;
height: 32px;
}
.phone-form-dialog-modal .el-dialog .el-dialog__close { color: #6b7280; }
.phone-form-dialog-modal .el-dialog .el-dialog__body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 24px;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
background: #fff;
}
/* Footer: fixed, light background to separate from content */
.phone-form-dialog .el-dialog__footer {
padding: 12px 24px 16px;
border-top: 1px solid #e5e7eb;
background: #fff;
flex-shrink: 0;
}
/* Dialog title with hint */
.phone-form-dialog__title {
display: flex;
align-items: baseline;
gap: 10px;
line-height: 1.4;
}
.phone-form-dialog__title-text {
font-size: 17px;
font-weight: 700;
color: #111827;
}
.phone-form-dialog__title-hint {
font-size: 12px;
color: #9ca3af;
font-weight: 400;
}
/* ===== Unified form controls ===== */
.phone-form-dialog__form .el-input__inner,
.phone-form-dialog__form .el-select .el-input__inner {
height: 34px !important;
line-height: 34px !important;
border-radius: 6px !important;
border-color: #d1d5db !important;
transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.phone-form-dialog__form .el-input__inner:focus,
.phone-form-dialog__form .el-select .el-input__inner:focus {
border-color: #d1d5db !important;
box-shadow: none !important;
}
.phone-form-dialog__form .el-input__inner::placeholder {
color: #c0c4cc;
font-size: 13px;
}
/* Unified form-item */
.phone-form-dialog__form .el-form-item {
margin-bottom: 15px;
}
.phone-form-dialog__form .el-row:last-child .el-form-item {
margin-bottom: 0;
}
.phone-form-dialog__form .el-form-item__label {
color: #4b5563;
font-size: 13px;
font-weight: 500;
line-height: 34px;
padding-right: 12px;
}
/* Required asterisk: bolder red */
.phone-form-dialog__form .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label::before {
color: #ef4444;
font-weight: 700;
margin-right: 4px;
}
/* ===== Section base ===== */
.phone-form-dialog__section {
margin-bottom: 20px;
}
.phone-form-dialog__section:last-child {
margin-bottom: 0;
}
/* Section title: number + name + tag/sub */
.phone-form-dialog__section-title {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
user-select: none;
}
.phone-form-dialog-modal .el-dialog .el-dialog__body::-webkit-scrollbar { width: 6px; }
.phone-form-dialog-modal .el-dialog .el-dialog__body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.phone-form-dialog__section-no {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 6px;
font-size: 11px;
font-weight: 700;
line-height: 1;
.phone-form-dialog-modal .el-dialog .el-dialog__footer {
flex-shrink: 0;
}
.phone-form-dialog__section-name {
font-size: 14px;
font-weight: 600;
color: #111827;
line-height: 1;
}
.phone-form-dialog__section-tag {
display: inline-flex;
align-items: center;
height: 18px;
padding: 0 6px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
line-height: 1;
}
.phone-form-dialog__section-sub {
font-size: 12px;
color: #9ca3af;
font-weight: 400;
line-height: 1;
}
/* ===== Image section: first priority ===== */
.phone-form-dialog__section--image {
background: transparent;
padding: 0;
border-radius: 0;
border: none;
box-shadow: none;
}
.phone-form-dialog__section--image .phone-form-dialog__section-no {
background: #e5e7eb;
color: #4b5563;
}
.phone-form-dialog__section--image .phone-form-dialog__section-name {
font-size: 13px;
color: #374151;
}
/* ===== Primary section: strongest emphasis ===== */
.phone-form-dialog__section--primary {
background: transparent;
padding: 0;
border-radius: 0;
border: none;
box-shadow: none;
}
.phone-form-dialog__section--primary .phone-form-dialog__section-no {
background: #2563eb;
color: #fff;
}
.phone-form-dialog__section--primary .phone-form-dialog__section-tag {
background: #fee2e2;
color: #dc2626;
}
/* ===== Divider ===== */
.phone-form-dialog__divider {
height: 1px;
background: #e5e7eb;
margin: 20px 0;
}
/* ===== Auxiliary section: muted, de-emphasized ===== */
.phone-form-dialog__section--auxiliary {
background: transparent;
padding: 0;
border-radius: 0;
border: none;
box-shadow: none;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__section-no {
background: #d1d5db;
color: #6b7280;
width: 20px;
height: 20px;
font-size: 10px;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__section-name {
font-size: 12px;
color: #6b7280;
font-weight: 600;
letter-spacing: 0.3px;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__section-sub {
font-size: 11px;
color: #9ca3af;
}
/* Auxiliary controls: smaller, muted */
.phone-form-dialog__section--auxiliary .el-form-item {
margin-bottom: 15px;
}
.phone-form-dialog__section--auxiliary .el-form-item__label {
color: #9ca3af;
font-size: 12px;
font-weight: 400;
}
.phone-form-dialog__section--auxiliary .el-input__inner,
.phone-form-dialog__section--auxiliary .el-select .el-input__inner {
height: 30px !important;
line-height: 30px !important;
font-size: 12px !important;
background: #fff !important;
border-color: #e5e7eb !important;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__switch {
height: 30px;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__switch-status {
color: #b0b4bb;
font-size: 11px;
}
.phone-form-dialog__section--auxiliary .phone-form-dialog__switch-status.is-on {
color: #6b7280;
}
/* ===== Switch field ===== */
.phone-form-dialog__switch {
display: flex;
align-items: center;
gap: 8px;
height: 34px;
}
.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 slots ===== */
.phone-form-dialog__image-slots {
display: flex;
gap: 16px;
margin-top: 16px;
}
.phone-form-dialog__image-slot {
flex: 0 0 auto;
cursor: pointer;
}
.phone-form-dialog__image-item {
position: relative;
width: 150px;
height: 84px;
border-radius: 8px;
overflow: hidden;
border: 1px solid #e5e7eb;
background: #fff;
cursor: pointer;
}
.phone-form-dialog__image-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.phone-form-dialog__image-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.55);
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
opacity: 0;
transition: opacity 0.2s ease;
}
.phone-form-dialog__image-item:hover .phone-form-dialog__image-overlay {
opacity: 1;
}
.phone-form-dialog__image-preview-btn,
.phone-form-dialog__image-remove {
padding: 3px 8px;
border: none;
border-radius: 4px;
background: rgba(255, 255, 255, 0.92);
color: #1f2937;
font-size: 11px;
cursor: pointer;
transition: background 0.15s ease;
}
.phone-form-dialog__image-preview-btn:hover,
.phone-form-dialog__image-remove:hover {
padding: 16px 24px;
background: #fff;
border-top: 1px solid #e5e7eb;
}
.phone-form-dialog__image-empty {
width: 150px;
height: 84px;
border-radius: 8px;
border: 1px dashed #d1d5db;
background: #fafafa;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
cursor: pointer;
user-select: none;
transition: border-color 0.2s ease, background 0.2s ease;
}
.phone-form-dialog__image-empty:hover {
border-color: #2563eb;
background: #eff6ff;
}
.phone-form-dialog__image-empty-text {
font-size: 12px;
color: #9ca3af;
font-weight: 500;
}
.phone-form-dialog__image-empty-divider {
font-size: 12px;
color: #d1d5db;
}
.phone-form-dialog__image-hint {
margin-top: 8px;
font-size: 12px;
color: #9ca3af;
}
/* ===== Footer ===== */
.phone-form-dialog__footer {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
}
/* Cancel button: subtle */
.phone-form-dialog__footer .el-button:not(.phone-form-dialog__submit-btn) {
height: 36px;
padding: 0 18px;
border-radius: 6px;
border-color: #e5e7eb;
color: #6b7280;
font-weight: 500;
}
.phone-form-dialog__footer .el-button:not(.phone-form-dialog__submit-btn):hover {
border-color: #d1d5db;
color: #374151;
background: #f9fafb;
}
/* Submit button: enhanced prominence */
.phone-form-dialog__submit-btn {
height: 36px !important;
padding: 0 28px !important;
font-size: 14px !important;
font-weight: 600 !important;
border-radius: 6px !important;
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
border: none !important;
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
transition: all 0.2s ease !important;
}
.phone-form-dialog__submit-btn:hover {
background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
transform: translateY(-1px) !important;
}
.phone-form-dialog__submit-btn:active {
transform: translateY(0) !important;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
.phone-form-dialog__title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.phone-form-dialog__title-text { color: #111827; font-size: 18px; font-weight: 600; line-height: 1.35; }
.phone-form-dialog__title-hint { color: #6b7280; font-size: 13px; line-height: 1.35; }
.phone-form-dialog__section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.phone-form-dialog__section-no { color: #6b7280; font-size: 12px; font-weight: 400; line-height: 1; }
.phone-form-dialog__section-name { color: #111827; font-size: 14px; font-weight: 700; line-height: 1; }
.phone-form-dialog__section-sub { color: #9ca3af; font-size: 12px; line-height: 1; }
.phone-form-dialog__section-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; color: #dc2626; background: #fef2f2; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1; }
.phone-form-dialog__divider { height: 1px; margin: 24px 0; background: #e5e7eb; }
.phone-form-dialog__image-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.phone-form-dialog__image-slot { position: relative; min-height: 112px; overflow: hidden; cursor: pointer; background: #fafafa; border: 1px dashed #d1d5db; border-radius: 8px; }
.phone-form-dialog__image-item, .phone-form-dialog__image-empty { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: inherit; }
.phone-form-dialog__image-item { overflow: hidden; }
.phone-form-dialog__image-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-form-dialog__image-empty { flex-direction: column; gap: 8px; color: #6b7280; background: #fafafa; transition: color 0.2s ease, background 0.2s ease; }
.phone-form-dialog__image-slot:hover .phone-form-dialog__image-empty { color: #374151; background: #f9fafb; }
.phone-form-dialog__upload-icon { color: #6b7280; font-size: 23px; font-weight: 400; line-height: 1; }
.phone-form-dialog__image-empty-text, .phone-form-dialog__image-hint { color: #6b7280; font-size: 12px; }
.phone-form-dialog__image-hint { margin-top: 8px; }
.phone-form-dialog__image-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(17, 24, 39, 0.56); opacity: 0; transition: opacity 0.2s ease; }
.phone-form-dialog__image-item:hover .phone-form-dialog__image-overlay { opacity: 1; }
.phone-form-dialog__image-preview-btn, .phone-form-dialog__image-remove { padding: 3px 8px; color: #1f2937; cursor: pointer; background: rgba(255, 255, 255, 0.94); border: 0; border-radius: 4px; font-size: 11px; }
.phone-form-dialog__section--primary .el-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; margin: 0 0 15px !important; }
.phone-form-dialog__section--primary .el-row:last-child { margin-bottom: 0 !important; }
.phone-form-dialog__section--primary .el-col { width: auto !important; max-width: none !important; padding: 0 !important; }
.phone-form-dialog__section--primary .el-form-item { width: 100%; min-width: 0; margin: 0; align-items: center; }
.phone-form-dialog__section--primary .el-form-item__label { flex: 0 0 104px; height: 36px; padding: 0 14px 0 0; color: #4b5563; font-size: 13px; font-weight: 500; line-height: 36px; text-align: right; box-sizing: border-box; }
.phone-form-dialog__section--primary .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label::before { margin-right: 4px; color: #ef4444; font-weight: 700; }
.phone-form-dialog__section--primary .el-form-item__content { flex: 1; min-width: 0; margin-left: 0 !important; line-height: 36px; }
.phone-form-dialog__section--primary .el-input, .phone-form-dialog__section--primary .el-select { width: 100%; }
.phone-form-dialog__section--primary .el-input__wrapper, .phone-form-dialog__section--primary .el-select__wrapper { min-height: 36px; padding: 0 11px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #d1d5db inset !important; box-sizing: border-box; }
.phone-form-dialog__section--primary .el-input__wrapper:hover, .phone-form-dialog__section--primary .el-select__wrapper:hover, .phone-form-dialog__section--primary .el-input__wrapper.is-focus, .phone-form-dialog__section--primary .el-select__wrapper.is-focused { box-shadow: 0 0 0 1px #9ca3af inset !important; }
.phone-form-dialog__section--primary .el-input__inner, .phone-form-dialog__section--primary .el-select__selected-item, .phone-form-dialog__section--primary .el-select__placeholder { font-size: 13px; }
.phone-form-dialog__settings-list { border-top: 1px solid #e5e7eb; }
.phone-form-dialog__setting-row { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e5e7eb; }
.phone-form-dialog__setting-name { color: #374151; font-size: 13px; font-weight: 500; }
.phone-form-dialog__switch { display: inline-flex; min-width: 108px; align-items: center; justify-content: flex-end; gap: 10px; }
.phone-form-dialog__switch-status { min-width: 52px; color: #6b7280; font-size: 13px; text-align: right; white-space: nowrap; }
.phone-form-dialog__switch-status.is-on { color: #374151; }
.phone-form-dialog__switch .el-switch { flex: 0 0 auto; }
.phone-form-dialog__footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.phone-form-dialog__footer .el-button { height: 36px; margin-left: 0 !important; padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.phone-form-dialog__footer .el-button:not(.phone-form-dialog__submit-btn) { color: #374151; background: #fff; border-color: #d1d5db; }
.phone-form-dialog__submit-btn { padding: 0 22px !important; color: #fff !important; background: #111827 !important; border-color: #111827 !important; box-shadow: none !important; }
.phone-form-dialog__submit-btn:hover { background: #374151 !important; border-color: #374151 !important; transform: none !important; }
@media (max-width: 740px) {
.phone-form-dialog-modal .el-overlay-dialog { padding: 12px; }
.phone-form-dialog-modal .el-dialog { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; }
.phone-form-dialog-modal .el-dialog .el-dialog__body { padding: 20px 16px; }
.phone-form-dialog__section--primary .el-row { grid-template-columns: minmax(0, 1fr); }
}
\ No newline at end of file
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