mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 05:58:22 +01:00
fix visualize bug after style changes
This commit is contained in:
parent
e63cae1550
commit
52af4b6940
Binary file not shown.
@ -294,7 +294,8 @@ namespace OS {
|
|||||||
.css("padding", 0)
|
.css("padding", 0)
|
||||||
.css("margin", 0)
|
.css("margin", 0)
|
||||||
.css("background-color", "transparent")
|
.css("background-color", "transparent")
|
||||||
.css("width", v * 15 + "px");
|
.css("width", v * 15 + "px")
|
||||||
|
.css("flex-shrink", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -375,6 +376,9 @@ namespace OS {
|
|||||||
$(this.refs.container)
|
$(this.refs.container)
|
||||||
.css("padding", 0)
|
.css("padding", 0)
|
||||||
.css("margin", 0)
|
.css("margin", 0)
|
||||||
|
.css("display","flex")
|
||||||
|
.css("flex-direction", "row")
|
||||||
|
.css("align-items", "center")
|
||||||
.css("white-space", "nowrap");
|
.css("white-space", "nowrap");
|
||||||
$(this.refs.itemholder).css("display", "inline-block");
|
$(this.refs.itemholder).css("display", "inline-block");
|
||||||
$(this.refs.wrapper).on("click",(e) => {
|
$(this.refs.wrapper).on("click",(e) => {
|
||||||
@ -388,6 +392,7 @@ namespace OS {
|
|||||||
$(this.refs.toggle)
|
$(this.refs.toggle)
|
||||||
.css("display", "inline-block")
|
.css("display", "inline-block")
|
||||||
.css("width", "15px")
|
.css("width", "15px")
|
||||||
|
.css("flex-shrink", 0)
|
||||||
.addClass("afx-tree-view-item")
|
.addClass("afx-tree-view-item")
|
||||||
.on("click",(e) => {
|
.on("click",(e) => {
|
||||||
this.open = !this.open;
|
this.open = !this.open;
|
||||||
|
@ -71,10 +71,13 @@ namespace OS {
|
|||||||
|
|
||||||
this.view.contextmenuHandle = (e, m) => {
|
this.view.contextmenuHandle = (e, m) => {
|
||||||
const file = this.view.selectedFile;
|
const file = this.view.selectedFile;
|
||||||
if (!file) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const apps = [];
|
const apps = [];
|
||||||
|
let ctx_menu = [
|
||||||
|
this.mnFile(),
|
||||||
|
];
|
||||||
|
if(file)
|
||||||
|
{
|
||||||
|
ctx_menu.push(this.mnEdit());
|
||||||
if (file.type === "dir") {
|
if (file.type === "dir") {
|
||||||
file.mime = "dir";
|
file.mime = "dir";
|
||||||
}
|
}
|
||||||
@ -87,8 +90,7 @@ namespace OS {
|
|||||||
iconclass: v.iconclass,
|
iconclass: v.iconclass,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
let ctx_menu = [
|
ctx_menu.unshift( {
|
||||||
{
|
|
||||||
text: "__(Open with)",
|
text: "__(Open with)",
|
||||||
nodes: apps,
|
nodes: apps,
|
||||||
onchildselect: (e: GUI.TagEventType<GUI.tag.MenuEventData>) => {
|
onchildselect: (e: GUI.TagEventType<GUI.tag.MenuEventData>) => {
|
||||||
@ -98,10 +100,7 @@ namespace OS {
|
|||||||
const it = e.data.item.data;
|
const it = e.data.item.data;
|
||||||
return this._gui.launch(it.app, [file]);
|
return this._gui.launch(it.app, [file]);
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
this.mnFile(),
|
|
||||||
this.mnEdit(),
|
|
||||||
];
|
|
||||||
if(file.mime === "application/zip")
|
if(file.mime === "application/zip")
|
||||||
{
|
{
|
||||||
ctx_menu = ctx_menu.concat([
|
ctx_menu = ctx_menu.concat([
|
||||||
@ -170,6 +169,8 @@ namespace OS {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
m.items = ctx_menu;
|
m.items = ctx_menu;
|
||||||
m.show(e);
|
m.show(e);
|
||||||
};
|
};
|
||||||
@ -764,7 +765,7 @@ namespace OS {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case `${this.name}-download`:
|
case `${this.name}-download`:
|
||||||
if (file.type !== "file") {
|
if (!file || file.type !== "file") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
file.path
|
file.path
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.1.5-b",
|
"version":"0.1.6-b",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-hdd-o",
|
"iconclass":"fa fa-hdd-o",
|
||||||
"mimes":["dir"],
|
"mimes":["dir"],
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
<afx-resizer data-width = "3" ></afx-resizer>
|
<afx-resizer data-width = "3" ></afx-resizer>
|
||||||
<afx-vbox data-id = "container">
|
<afx-vbox data-id = "container">
|
||||||
<afx-label data-id = "appname" data-height = "25"></afx-label>
|
<afx-label data-id = "appname" data-height = "45"></afx-label>
|
||||||
<afx-hbox data-height = "50">
|
<afx-hbox data-height = "50">
|
||||||
<div style = "text-align:left;">
|
<div style = "text-align:left;">
|
||||||
<afx-button data-id = "bt-remove" text = "__(Uninstall)"></afx-button>
|
<afx-button data-id = "bt-remove" text = "__(Uninstall)"></afx-button>
|
||||||
|
@ -25,6 +25,11 @@ afx-file-view afx-list-view i.label-text{
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afx-file-view afx-list-view afx-label span
|
||||||
|
{
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
afx-file-view afx-grid-view i{
|
afx-file-view afx-grid-view i{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ afx-label span {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items:center;
|
align-items:center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
afx-label i.label-text{
|
afx-label i.label-text{
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -130,3 +130,7 @@ body
|
|||||||
height: 1px;
|
height: 1px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afx-desktop > .list-container > ul > afx-list-item afx-label span {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user