Revision 58bc40a9
Added by Andreas Kohlbecker over 2 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/PersonField.java | ||
---|---|---|
198 | 198 |
nomenclaturalTitleButton.setHeight(22, Unit.PIXELS); |
199 | 199 |
nomenclaturalTitleButton.setDescription("Show the nomenclatural title cache."); |
200 | 200 |
nomenclaturalTitleButton.addClickListener( e -> { |
201 |
nomenclaturalTitleField.setVisible(!nomenclaturalTitleField.isVisible()); |
|
201 |
nomenclaturalTitleField.setVisible(true || !nomenclaturalTitleField.isVisible());
|
|
202 | 202 |
nomenclaturalTitleButtonChooseIcon(); |
203 | 203 |
if(nomenclaturalTitleField.isVisible()){ |
204 | 204 |
nomenclaturalTitleField.focus(); |
... | ... | |
206 | 206 |
}); |
207 | 207 |
// nomenclaturalTitleField.setCaption("Nomenclatural title"); |
208 | 208 |
nomenclaturalTitleField.setDescription("Nomenclatural title"); |
209 |
nomenclaturalTitleField.addStyleName("nomenclatural-title"); |
|
209 | 210 |
nomenclaturalTitleField.setWidth(100, Unit.PERCENTAGE); |
210 | 211 |
// nomenclaturalTitleField.addValueChangeListener( e -> { |
211 | 212 |
// if(e.getProperty().getValue() != null && ((String)e.getProperty().getValue()).isEmpty()){ |
... | ... | |
256 | 257 |
* |
257 | 258 |
*/ |
258 | 259 |
protected void nomenclaturalTitleButtonChooseIcon() { |
259 |
nomenclaturalTitleButton.setIcon(nomenclaturalTitleField.isVisible() ? FontAwesome.ANGLE_UP : FontAwesome.ELLIPSIS_H); |
|
260 |
nomenclaturalTitleButton.setIcon(true || nomenclaturalTitleField.isVisible() ? FontAwesome.ANGLE_UP : FontAwesome.ELLIPSIS_H);
|
|
260 | 261 |
} |
261 | 262 |
|
262 | 263 |
/** |
src/main/webapp/VAADIN/themes/edit-valo/custom-fields.scss | ||
---|---|---|
111 | 111 |
// ------------ v-person-field ------------ // |
112 | 112 |
.v-person-field { |
113 | 113 |
position: relative; |
114 |
margin-bottom: $edit-v-shadow-spread-radius ; |
|
114 | 115 |
.v-caption { |
115 | 116 |
display: block; |
116 | 117 |
} |
... | ... | |
120 | 121 |
.v-switch { |
121 | 122 |
z-index: 10; |
122 | 123 |
position: absolute; |
123 |
right: 3px; // boxshadow width (3px) from $v-shadow, TODO extract value from variable? |
|
124 |
top: 4px; // boxshadow width (3px) + 1 |
|
125 |
} |
|
124 |
right: $edit-v-shadow-spread-radius; // boxshadow width (3px) from $v-shadow, |
|
125 |
top: $edit-v-shadow-spread-radius + 1px; // boxshadow width (3px) + 1 |
|
126 |
} |
|
127 |
.nomenclatural-title { |
|
128 |
margin-top: $edit-v-shadow-spread-radius; |
|
129 |
} |
|
126 | 130 |
} |
127 | 131 |
.v-person-field-cache-mode { |
128 | 132 |
.cache-field { |
src/main/webapp/VAADIN/themes/edit-valo/valo-fix.scss | ||
---|---|---|
20 | 20 |
font-size: $v-font-size--small; |
21 | 21 |
} |
22 | 22 |
|
23 |
// ------------------------------------------- |
|
24 |
|
|
25 |
.edit-valo .v-layout .v-component-group { |
|
26 |
.v-textfield, .v-switch, .v-button { |
|
27 |
margin-top: $edit-v-shadow-spread-radius; |
|
28 |
margin-bottom: $edit-v-shadow-spread-radius; |
|
29 |
} |
|
30 |
} |
|
31 |
|
|
32 |
|
|
23 | 33 |
// ------------------------------------------- |
24 | 34 |
// add missing shadows |
25 | 35 |
.v-select-select { |
Also available in: Unified diff
improving spacing of team and person fiels elements