File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
src/html/components/component-preview Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,14 @@ const backgroundColor = bgColor ? 'var(--content-wrapper-bg)' : 'transparent'
73
73
data-bg-color ={ bgColor .toString ()}
74
74
{... iframeSrc && { ' data-external-src' : iframeSrc }}
75
75
>
76
- <div class =" card-header p-3 border-bottom d-flex justify-content-between align-items-center " >
77
- <span class =" card-title fs-6 mb-0" >{ title } </span >
76
+ <div class =" card-header p-3 border-bottom d-grid " style = " grid-template-columns: 1fr auto 1fr; " >
77
+ <span class =" card-title fs-6 mb-0 d-flex align-items-center " >{ title } </span >
78
78
79
- <PreviewDevices />
79
+ <div class =" d-flex justify-content-center" >
80
+ <PreviewDevices />
81
+ </div >
80
82
81
- <div class =" d-flex justify-content-end" >
83
+ <div class =" d-flex justify-content-end align-items-center " >
82
84
{
83
85
! disableModal && (
84
86
<PreviewButton
@@ -295,14 +297,19 @@ const backgroundColor = bgColor ? 'var(--content-wrapper-bg)' : 'transparent'
295
297
style = " max-width: 95vw; height: 95vh; margin: 1rem auto;"
296
298
>
297
299
<div class = " modal-content border-0 h-100" >
298
- <div class = " modal-header py-2 d-flex justify-content-between align-items-center bg-body-secondary border-bottom" >
299
- <span class = " modal-title fs-6 mb-0" id = { ` ${previewId }-label ` } >
300
+ <div
301
+ class = " modal-header py-2 d-grid bg-body-secondary border-bottom"
302
+ style = " grid-template-columns: 1fr auto 1fr;"
303
+ >
304
+ <span class = " modal-title fs-6 mb-0 d-flex align-items-center" id = { ` ${previewId }-label ` } >
300
305
{ title }
301
306
</span >
302
307
303
- <PreviewDevices />
308
+ <div class = " d-flex justify-content-center" >
309
+ <PreviewDevices />
310
+ </div >
304
311
305
- <div class = " d-flex justify-content-end gap-2" >
312
+ <div class = " d-flex justify-content-end gap-2 align-items-center " >
306
313
<PreviewButton
307
314
icon = " ri-sun-line"
308
315
title = " Toggle Theme"
You can’t perform that action at this time.
0 commit comments