Skip to content

Commit 99cdac4

Browse files
duynnduCopilot
andcommitted
ref(className): sửa class name để tránh conflict với app host
Co-authored-by: Copilot <copilot@github.com>
1 parent 2bbc516 commit 99cdac4

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

projects/template-editor/src/components/EditElementPanel.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@
6969
</div>
7070

7171
<!-- Modal thêm Attribute -->
72-
<div v-if="showAttributeModal" class="modal-overlay">
73-
<div class="modal">
74-
<div class="modal-header">
72+
<div v-if="showAttributeModal" class="edit-element-modal-overlay">
73+
<div class="edit-element-modal">
74+
<div class="edit-element-modal-header">
7575
<h3>Add New Attribute</h3>
7676
<button @click="showAttributeModal = false" class="close-btn">
7777
×
7878
</button>
7979
</div>
80-
<div class="modal-body">
80+
<div class="edit-element-modal-body">
8181
<div class="form-group">
8282
<label>Attribute Name</label>
8383
<input
@@ -105,7 +105,7 @@
105105
</div>
106106
<div v-if="availableAttributeSuggestions.length" class="suggestion-row"></div>
107107
</div>
108-
<div class="modal-footer">
108+
<div class="edit-element-modal-footer">
109109
<button @click="showAttributeModal = false" class="cancel-btn">
110110
Cancel
111111
</button>
@@ -449,7 +449,7 @@ export default {
449449
}
450450
451451
/* Modal Styles */
452-
.modal-overlay {
452+
.edit-element-modal-overlay {
453453
position: fixed;
454454
top: 0;
455455
left: 0;
@@ -462,32 +462,32 @@ export default {
462462
z-index: 2000;
463463
}
464464
465-
.modal {
465+
.edit-element-modal {
466466
background: white;
467467
border-radius: 8px;
468468
width: 400px;
469469
max-width: 90vw;
470470
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
471471
}
472472
473-
.modal-header {
473+
.edit-element-modal-header {
474474
padding: 15px 20px;
475475
border-bottom: 1px solid #eee;
476476
display: flex;
477477
justify-content: space-between;
478478
align-items: center;
479479
}
480480
481-
.modal-header h3 {
481+
.edit-element-modal-header h3 {
482482
margin: 0;
483483
color: #2c3e50;
484484
}
485485
486-
.modal-body {
486+
.edit-element-modal-body {
487487
padding: 20px;
488488
}
489489
490-
.modal-footer {
490+
.edit-element-modal-footer {
491491
padding: 15px 20px;
492492
border-top: 1px solid #eee;
493493
display: flex;
@@ -513,7 +513,7 @@ export default {
513513
cursor: pointer;
514514
}
515515
516-
.modal-body input {
516+
.edit-element-modal-body input {
517517
width: 95%;
518518
padding: 8px;
519519
border: 1px solid #ddd;

0 commit comments

Comments
 (0)