Refactor Preview component by removing unused logos export and cleaning up CSS variables for improved maintainability

This commit is contained in:
sHa
2025-05-02 10:32:45 +03:00
parent 5bf362d1f0
commit 31cf501a8b

View File

@@ -6,7 +6,6 @@
export let show = false; export let show = false;
export let logo = null; export let logo = null;
export let theme; export let theme;
export let logos = [];
export let openLogoByAnchor = () => {}; export let openLogoByAnchor = () => {};
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@@ -199,16 +198,6 @@
</div> </div>
<style> <style>
:root,
:root.light,
[data-theme="light"] {
--color-backdrop: rgba(255,255,255,0.98);
}
:root.dark,
[data-theme="dark"] {
--color-backdrop: rgba(0,0,0,0.99);
}
.modal-backdrop.fullscreen { .modal-backdrop.fullscreen {
position: fixed; position: fixed;
top: 0; left: 0; right: 0; bottom: 0; top: 0; left: 0; right: 0; bottom: 0;
@@ -296,8 +285,7 @@
justify-content: center; justify-content: center;
overflow: hidden; overflow: hidden;
} }
.preview-media-wrapper img, .preview-media-wrapper img {
.preview-media-wrapper svg {
width: 100%; width: 100%;
height: 100%; height: 100%;
min-width: 0; min-width: 0;