feat: add confirmation dialog for uninstallation

This commit is contained in:
KOWX712
2025-03-19 19:36:19 +08:00
parent d5c2fe2cbd
commit ad4cc31c29
16 changed files with 166 additions and 19 deletions
+55
View File
@@ -130,6 +130,55 @@ body {
display: none;
}
.uninstall-confirmation-overlay {
align-items: center;
z-index: 2000;
}
.uninstall-confirmation {
width: 90%;
max-width: 600px;
max-height: 80%;
overflow-y: auto;
background-color: white;
border-radius: 15px;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.uninstall-confirmation p {
user-select: none;
}
.uninstall-confirmation-title {
font-size: 26px;
user-select: none;
}
.uninstall-confirmation-button-container {
display: flex;
width: 100%;
gap: 10px;
margin-top: 10px;
}
.uninstall-confirmation-button {
width: 100%;
padding: 12px;
border: none;
border-radius: 12px;
font-size: 18px;
font-weight: bold;
user-select: none;
}
#confirm-uninstall {
color: #fff;
background-color: #007bff;
}
.permission-popup {
opacity: 1;
align-items: center;
@@ -198,6 +247,7 @@ body {
background-color: #121212;
}
.uninstall-confirmation,
.permission-content {
background-color: #343434;
}
@@ -206,4 +256,9 @@ body {
.permission-steps p {
color: #fff;
}
.uninstall-confirmation-button {
background-color: #6E6E6E;
color: white;
}
}
-10
View File
@@ -137,18 +137,8 @@
}
.help-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.2s ease;
}
.help-menu {
-1
View File
@@ -122,7 +122,6 @@
border-radius: 12px;
font-size: 18px;
font-weight: bold;
transition: background-color 0.2s ease;
}
.get-button,