mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
-- Create preview-box.less styles
- Being used inside /views/console/storage/index.phtml
This commit is contained in:
@@ -138,6 +138,12 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
||||
<div class="margin-bottom-small">File Preview</div>
|
||||
|
||||
<div class="margin-bottom-small">
|
||||
<div class="preview-box">
|
||||
<div class="preview-box-image">
|
||||
<span class="IMAGE-OR-ICON">@</span>
|
||||
</div>
|
||||
<span class="preview-box-text">Preview not available</span>
|
||||
</div>
|
||||
<img src="" class="file-preview" data-ls-attrs="src={{env.ENDPOINT}}/v1/storage/files/{{file.$id}}/preview?width=350&height=250&project={{router.params.project}}&mode=admin" loading="lazy" width="225" height="160" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
.preview-box {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
padding: 40px;
|
||||
background: var(--config-color-background-fade);
|
||||
border: 1px dashed var(--config-color-background-dark);
|
||||
border-radius: 8px;
|
||||
&-image {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-inline: auto;
|
||||
background-color: var(--config-color-background-focus);
|
||||
border-radius: 50%;
|
||||
}
|
||||
&-text{
|
||||
margin-top: 16px;
|
||||
color: var(--config-color-fade);
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,7 @@ img[src=""] {
|
||||
@import "comps/modal";
|
||||
@import "comps/scroll";
|
||||
@import "comps/tabs";
|
||||
@import "comps/preview-box";
|
||||
|
||||
html {
|
||||
padding: 0;
|
||||
@@ -54,4 +55,4 @@ ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user