@@ -97,36 +111,64 @@ const getDimensionValue = (value) => {
background-color: #3a3a3a;
border-bottom: 1px solid #444;
}
-.modal-close-btn {
+.modal-header-buttons {
position: absolute;
- top: 8px;
left: 10px;
+ top: 8px;
+ display: flex;
+ gap: 8px;
+ height: 20px;
+}
+.modal-close-btn,
+.modal-maximize-btn {
width: 16px;
height: 16px;
border-radius: 50%;
border: none;
- background-color: #ff5b5b;
- color: #666;
- font-weight: bold;
cursor: default;
display: flex;
align-items: center;
justify-content: center;
+ position: relative;
+ flex-shrink: 0;
+}
+.modal-close-btn {
+ background-color: #ff5b5b;
+}
+.modal-maximize-btn {
+ background-color: #37b600;
+}
+.modal-close-btn::before,
+.modal-maximize-btn::before {
+ position: absolute;
+ font-family: "Font Awesome 7 Free";
+ font-weight: bolder;
+ font-size: 11px;
+ color: #555;
+ opacity: 0;
+ transition: opacity 0.2s ease;
}
.modal-close-btn::before {
content: "\f00d";
- font-family: "Font Awesome 7 Free";
- font-weight: bolder;
- display: none;
font-size: 11px;
- color: #555;
}
-.modal-close-btn:hover::before {
- display: block;
+.modal-maximize-btn::before {
+ content: "\f424";
+ font-size: 8px;
+}
+.modal-container.maximized .modal-maximize-btn::before {
+ content: "\f422";
+}
+.modal-header-buttons:hover .modal-close-btn::before,
+.modal-header-buttons:hover .modal-maximize-btn::before {
+ opacity: 1;
}
.modal-close-btn:active {
background-color: #c64848;
}
+.modal-maximize-btn:active {
+ background-color: #288500;
+}
.modal-header-title {
position: absolute;
top: 4px;
diff --git a/src/views/Loading.vue b/src/views/Loading.vue
index c2f8db0..0097a01 100644
--- a/src/views/Loading.vue
+++ b/src/views/Loading.vue
@@ -1,19 +1,23 @@