solara/lib/core/dashboard/component/ConfirmationDialog.js in solara-0.2.2 vs solara/lib/core/dashboard/component/ConfirmationDialog.js in solara-0.2.3
- old
+ new
@@ -5,73 +5,75 @@
this.render();
}
render() {
this.shadowRoot.innerHTML = `
- <style>
- .confirmation-dialog {
- display: none;
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- background-color: white;
- padding: 20px;
- border-radius: 10px;
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- z-index: 1001;
- text-align: center;
- }
- .confirmation-dialog h3 {
- margin-top: 0;
- color: var(--primary-color);
- }
- .confirmation-dialog .buttons {
- margin-top: 20px;
- }
- .confirmation-dialog button {
- margin: 0 10px;
- padding: 10px 20px;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- font-size: 16px;
- transition: background-color 0.3s ease;
- }
- .confirmation-dialog .confirm {
- background-color: #dc3545;
- color: white;
- }
- .confirmation-dialog .cancel {
- background-color: #ccc;
- color: #333;
- }
- .confirmation-dialog .confirm:hover {
- background-color: #c82333;
- }
- .confirmation-dialog .cancel:hover {
- background-color: #bbb;
- }
- .overlay {
- display: none;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- z-index: 999;
- }
- </style>
- <div class="overlay" id="overlay"></div>
- <div class="confirmation-dialog" id="confirmationDialog">
- <h3>Confirm Action</h3>
- <p id="confirmationMessage"></p>
- <div class="buttons">
- <button class="confirm" id="confirmButton">Confirm</button>
- <button id="cancelButton">Cancel</button>
- </div>
- </div>
+ <style>
+ .confirmation-dialog {
+ display: none;
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background-color: white;
+ padding: 14px;
+ border-radius: 7px;
+ box-shadow: 0 2.8px 4.2px rgba(0, 0, 0, 0.1);
+ z-index: 1001;
+ text-align: center;
+ font-size: 11.2px;
+ }
+ .confirmation-dialog h3 {
+ margin-top: 0;
+ color: var(--primary-color);
+ font-size: 15.4px;
+ }
+ .confirmation-dialog .buttons {
+ margin-top: 14px;
+ }
+ .confirmation-dialog button {
+ margin: 0 7px;
+ padding: 7px 14px;
+ border: none;
+ border-radius: 3.5px;
+ cursor: pointer;
+ font-size: 11.2px;
+ transition: background-color 0.3s ease;
+ }
+ .confirmation-dialog .confirm {
+ background-color: #dc3545;
+ color: white;
+ }
+ .confirmation-dialog .cancel {
+ background-color: #ccc;
+ color: #333;
+ }
+ .confirmation-dialog .confirm:hover {
+ background-color: #c82333;
+ }
+ .confirmation-dialog .cancel:hover {
+ background-color: #bbb;
+ }
+ .overlay {
+ display: none;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(0, 0, 0, 0.5);
+ z-index: 999;
+ }
+</style>
+<div class="overlay" id="overlay"></div>
+<div class="confirmation-dialog" id="confirmationDialog">
+ <h3>Confirm Action</h3>
+ <p id="confirmationMessage"></p>
+ <div class="buttons">
+ <button class="confirm" id="confirmButton">Confirm</button>
+ <button class="cancel" id="cancelButton">Cancel</button>
+ </div>
+</div>
`;
this.confirmationDialog = this.shadowRoot.getElementById('confirmationDialog');
this.overlay = this.shadowRoot.getElementById('overlay');
this.confirmButton = this.shadowRoot.getElementById('confirmButton');
\ No newline at end of file