pers props app update

This commit is contained in:
cyber-dream 2023-05-07 04:24:46 +03:00
parent 9b88db9289
commit b8eda48aa7
3 changed files with 63 additions and 39 deletions

View File

@ -22,7 +22,23 @@
width: 0;
height: 0;
} */
.PersPropsContent{
width: 100%;
height: 100%;
/* Auto layout */
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
padding: 0px;
}
.PersPropsContent .PropsView{
/* background-color: rebeccapurple; */
width: 100%;
height: auto;
}
.PropertiesList{
/* width: 100%;
height: auto; */
@ -41,7 +57,7 @@
}
.Personal-properties-bio{
.PropertiesList .ShortBio{
/* width: 100%;
height: auto; */
/* margin-right: -20px; */
@ -61,9 +77,7 @@
gap:15px;
}
.Personal-properties-textbio{
.ShortBio .Text{
/* width: 100%;
height: auto; */
@ -81,8 +95,14 @@
gap:1px;
}
.ShortBio .Name{
font-family: "Virtue";
/* FIXME */
letter-spacing: 0.35px;
}
.Personal-properties-prop{
.PropertiesList .Island{
width: 100%;
height: auto;
border: 1px solid #888888;
@ -97,12 +117,10 @@
gap:1px; */
}
.Personal-properties-prop-title{
.Island .Title {
font-family: "Virtue";
letter-spacing: 0.35px;
/* FIXME */
letter-spacing: 0.35px;
position:relative;
display: inline-block;
max-width: 100%;
@ -111,7 +129,11 @@
top: -9px;
}
.Personal-properties-prop-content{
.Focused .Island .Title{
background-color: #CCCCCC;
}
.Island .Content{
width: 100%;
/* top: 0px; */
/* Auto layout */
@ -122,7 +144,7 @@
gap: 12px;
}
.Personal-properties-prop-row{
.Island .Row{
margin-left: 12px;
margin-right: 12px;
/* Auto layout */
@ -132,7 +154,7 @@
padding: 0px;
gap: 5px;
}
.Personal-properties-prop-key{
.Island .Key{
position: relative;
font-family: "Virtue";
font-size: 11px;
@ -145,7 +167,7 @@
/* font-weight: bold; */
}
.Personal-properties-prop-key-comments{
.Island .KeyComment{
/* color: rgb(129, 129, 129); TODO*/
color: #646464;
font-size: 9px;
@ -154,7 +176,8 @@
white-space:normal;
/* filter: drop-shadow(-.5px -.5px 0px #616161); */
}
.Personal-properties-prop-values{
.Island .Values{
width: 55%;
display: flex;
flex-direction: column;
@ -164,7 +187,7 @@
}
.Personal-properties-prop-value{
.Values .Value{
/* width: 55%; */
}

View File

@ -23,7 +23,7 @@ class PersonalProperties{
newWindow.innerHTML = html
let scrollBar = new WdeScrollBar(newWindow.querySelector('.ScrollBarScrollElement'), newWindow.querySelector('.ScrollContent'))
let scrollBar = new WdeScrollBar(newWindow.querySelector('.ScrollBarScrollElement'), newWindow.querySelector('.PropsView'))
newWindow.querySelector("#closeWindowButton").addEventListener('click', () => {
console.log("qewqweqweqweqwe")

View File

@ -7,37 +7,37 @@
</div>
<div id="Drag" class="VisualDragArea"></div>
</div>
<div class="ContentBorder">
<div class="ScrollContent">
<div class="PropertiesList">
<div class="Personal-properties-bio">
<img src="/system/libs/img/get?path={{ .headerProps.IconPath }}" alt="My Photo" style="width: 48px;height: 48px;">
<div class="Personal-properties-textbio">
{{ .headerProps.IconPath }}
<div>{{ .headerProps.Name }}</div>
<div>{{ .headerProps.Info1 }}</div>
<div>{{ .headerProps.Info2 }}</div>
</div>
</div>
{{ range $propIsland := .allprops }}
<div id="prop" class="Personal-properties-prop">
<div class="Personal-properties-prop-title">
<div class="ContentBorder AdjectiveElement">
<div class="PersPropsContent">
<div class="PropsView">
<div class="PropertiesList">
<div class="ShortBio">
<img src="/system/libs/img/get?path={{ .headerProps.IconPath }}" alt="My Photo" style="width: 48px;height: 48px;">
<div class="Text">
<div class="Name">{{ .headerProps.Name }}</div>
<div>{{ .headerProps.Info1 }}</div>
<div>{{ .headerProps.Info2 }}</div>
</div>
</div>
{{ range $propIsland := .allprops }}
<div class="Island">
<div class="Title">
{{$propIsland.Header}}:
</div>
<div class="Personal-properties-prop-content">
<div class="Content">
{{range $prop := $propIsland.Props}}
<div class="Personal-properties-prop-row">
<div class="Personal-properties-prop-key">
<div class="Row">
<div class="Key">
{{$prop.Key}}:
{{ range $value := $prop.KeyComments }}
<div class="Personal-properties-prop-key-comments">
<div class="KeyComment">
{{ $value }}
</div>
{{ end }}
</div>
<div class="Personal-properties-prop-values">
<div class="Values">
{{ range $value := $prop.Values }}
<div class="Personal-properties-prop-value">
<div class="Value">
{{ $value }}
</div>
{{ end }}
@ -47,9 +47,10 @@
</div>
</div>
{{ end }}
</div>
</div>
{{template "wde-widgets/scrollbar.tmpl" .}}
</div>
{{template "wde-widgets/scrollbar.tmpl" .}}
</div>
{{ end }}