file-recent by url

This commit is contained in:
OVSharova 2022-03-31 17:27:57 +03:00
parent 1ca8657745
commit a2adc37a34
9 changed files with 28 additions and 18 deletions

View file

@ -978,9 +978,9 @@ define([
itemTemplate: _.template([ itemTemplate: _.template([
'<div class="recent-wrap">', '<div class="recent-wrap">',
'<div class="recent-icon">', '<div class="recent-icon">',
'<svg>', '<div>',
'<use xlink:href="#svg-file-recent"></use>', '<div class="svg-file-recent"></div>',
'</svg>', '</div>',
'</div>', '</div>',
'<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>', '<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>',
'<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>', '<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>',

View file

@ -1,9 +1,9 @@
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<symbol id="svg-file-recent">
<rect width="15" height="15" fill="white"/> <rect width="15" height="15" fill="white"/>
<rect width="15" height="15" rx="1" fill="#446995"/> <rect width="15" height="15" rx="1" fill="#446995"/>
<rect x="3" y="4" width="9" height="1" fill="white"/> <rect x="3" y="4" width="9" height="1" fill="white"/>
<rect x="3" y="7" width="9" height="1" fill="white"/> <rect x="3" y="7" width="9" height="1" fill="white"/>
<rect x="3" y="10" width="9" height="1" fill="white"/> <rect x="3" y="10" width="9" height="1" fill="white"/>
</symbol>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 365 B

View file

@ -334,12 +334,16 @@
.recent-icon { .recent-icon {
float: left; float: left;
display: inline-block;
width: 25px; width: 25px;
height: 25px; height: 25px;
margin-top: 1px; margin-top: 1px;
svg { div {
width: 100%; width: 100%;
height: 100%; height: 100%;
.svg-file-recent {
background: ~"url(resources/img/recent-file.svg) no-repeat top";
}
} }
} }

View file

@ -751,9 +751,9 @@ define([
itemTemplate: _.template([ itemTemplate: _.template([
'<div class="recent-wrap">', '<div class="recent-wrap">',
'<div class="recent-icon">', '<div class="recent-icon">',
'<svg>', '<div>',
'<use xlink:href="#svg-file-recent"></use>', '<div class="svg-file-recent"></div>',
'</svg>', '</div>',
'</div>', '</div>',
'<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>', '<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>',
'<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>', '<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>',

View file

@ -1,7 +1,7 @@
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<symbol id="svg-file-recent">
<rect width="15" height="15" fill="white"/> <rect width="15" height="15" fill="white"/>
<rect width="15" height="15" rx="1" fill="#A95153"/> <rect width="15" height="15" rx="1" fill="#A95153"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4H3V11H12V4ZM2 3V12H13V3H2Z" fill="white"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 4H3V11H12V4ZM2 3V12H13V3H2Z" fill="white"/>
</symbol>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 299 B

View file

@ -357,9 +357,12 @@
width: 25px; width: 25px;
height: 25px; height: 25px;
margin-top: 1px; margin-top: 1px;
svg { div {
width: 100%; width: 100%;
height: 100%; height: 100%;
.svg-file-recent {
background: ~"url(resources/img/recent-file.svg) no-repeat top";
}
} }
} }

View file

@ -1148,9 +1148,9 @@ define([
itemTemplate: _.template([ itemTemplate: _.template([
'<div class="recent-wrap">', '<div class="recent-wrap">',
'<div class="recent-icon">', '<div class="recent-icon">',
'<svg>', '<div>',
'<use xlink:href="#svg-file-recent"></use>', '<div class="svg-file-recent"></div>',
'</svg>', '</div>',
'</div>', '</div>',
'<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>', '<div class="file-name"><% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %></div>',
'<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>', '<div class="file-info"><% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %></div>',

View file

@ -1,7 +1,7 @@
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<symbol id="svg-file-recent">
<rect width="15" height="15" fill="white"/> <rect width="15" height="15" fill="white"/>
<rect width="15" height="15" rx="1" fill="#42865E"/> <rect width="15" height="15" rx="1" fill="#42865E"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 12H13V3H2V12ZM7 4H3V7H7V4ZM8 4V7H12V4H8ZM7 8H3V11H7V8ZM8 11H12V8H8V11Z" fill="white"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M2 12H13V3H2V12ZM7 4H3V7H7V4ZM8 4V7H12V4H8ZM7 8H3V11H7V8ZM8 11H12V8H8V11Z" fill="white"/>
</symbol>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 341 B

View file

@ -421,9 +421,12 @@
width: 25px; width: 25px;
height: 25px; height: 25px;
margin-top: 1px; margin-top: 1px;
svg { div {
width: 100%; width: 100%;
height: 100%; height: 100%;
.svg-file-recent {
background: ~"url(resources/img/recent-file.svg) no-repeat top";
}
} }
} }