@abi-software/map-side-bar 2.14.5 → 2.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "2.14.5",
3
+ "version": "2.14.6",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Common styles for connectivity explorer components
3
+ */
4
+
5
+ .id-tag {
6
+ color: #555;
7
+ background: #e0e0e0;
8
+ padding: 2px 4px;
9
+ border-radius: 4px;
10
+ font-size: .75rem !important;
11
+ }
@@ -8,7 +8,6 @@
8
8
  </div>
9
9
  <template v-for="field in displayFields" :key="field">
10
10
  <div class="card-details" v-if="entry[field]">
11
- <strong>{{ field }}: </strong>
12
11
  <div v-if="field === 'nerve-label'" class="card-tags">
13
12
  <div v-for="nerve in entry[field]" :key="nerve.nerve">
14
13
  <el-tag type="primary" size="small">
@@ -19,7 +18,7 @@
19
18
  </el-tag>
20
19
  </div>
21
20
  </div>
22
- <span v-else>{{ entry[field] }}</span>
21
+ <span class="id-tag" v-else>{{ entry[field] }}</span>
23
22
  </div>
24
23
  </template>
25
24
  </div>
@@ -98,6 +97,8 @@ export default {
98
97
  </script>
99
98
 
100
99
  <style lang="scss" scoped>
100
+ @import '../assets/connectivity-explorer.scss';
101
+
101
102
  .connectivity-card {
102
103
  padding-left: 5px;
103
104
  position: relative;
@@ -111,7 +112,7 @@ export default {
111
112
  }
112
113
 
113
114
  .card-title {
114
- margin-bottom: 0.75rem;
115
+ margin-bottom: 0.5rem;
115
116
  font-weight: bold;
116
117
  line-height: 1.5;
117
118
  letter-spacing: 1.05px;
@@ -125,6 +126,10 @@ export default {
125
126
  .card-details {
126
127
  line-height: 1.5;
127
128
  letter-spacing: 1.05px;
129
+
130
+ + .card-details {
131
+ margin-top: 0.25em;
132
+ }
128
133
  }
129
134
 
130
135
  .el-tag {
@@ -27,7 +27,7 @@
27
27
  </button>
28
28
  </div>
29
29
  <div class="subtitle">
30
- <strong>Id: </strong>{{ entry.featureId[0] }}
30
+ <span class="id-tag">{{ entry.featureId[0] }}</span>
31
31
  <el-button
32
32
  round
33
33
  size="small"
@@ -991,6 +991,8 @@ export default {
991
991
  </script>
992
992
 
993
993
  <style lang="scss" scoped>
994
+ @import '../assets/connectivity-explorer.scss';
995
+
994
996
  .connectivity-info-title {
995
997
  padding: 0;
996
998
  display: flex;
@@ -1155,6 +1157,10 @@ export default {
1155
1157
  text-transform: uppercase;
1156
1158
  }
1157
1159
 
1160
+ .subtitle + .subtitle {
1161
+ margin-top: 0.25em;
1162
+ }
1163
+
1158
1164
  .button {
1159
1165
  margin-left: 0px !important;
1160
1166
  margin-top: 0px !important;