Skip to content

Commit

Permalink
chg: style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
righel committed Jan 23, 2025
1 parent 6ca7a76 commit 005e858
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/attributes/AttributesIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ function handleAttributesUpdated(event) {
<table class="table table-striped">
<thead>
<tr>
<th style="width: 30%" scope="col">value</th>
<th style="width: 15%" scope="col" class="d-none d-sm-table-cell">tags</th>
<th style="width: 10%" scope="col">type</th>
<th style="width: 10%" scope="col" class="d-none d-sm-table-cell">timestamp</th>
<th style="width: 15%" scope="col" class="d-none d-sm-table-cell">distribution</th>
<th style="width: 20%" scope="col" class="text-end">actions</th>
<th scope="col">value</th>
<th style="width: 400px;" scope="col" class="d-none d-sm-table-cell">tags</th>
<th scope="col">type</th>
<th scope="col" class="d-none d-sm-table-cell">timestamp</th>
<th scope="col" class="d-none d-sm-table-cell">distribution</th>
<th scope="col" class="text-end">actions</th>
</tr>
</thead>
<tbody>
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/objects/ObjectAttributesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function handleAttributeEnriched(attribute_id) {
<table class="table table-striped">
<thead>
<tr>
<th style="width: 30%" scope="col">value</th>
<th style="width: 15%" scope="col" class="d-none d-sm-table-cell">tags</th>
<th style="width: 10%" scope="col">type</th>
<th style="width: 10%" scope="col" class="d-none d-sm-table-cell">timestamp</th>
<th style="width: 15%" scope="col" class="d-none d-sm-table-cell">distribution</th>
<th style="width: 20%" scope="col" class="text-end">actions</th>
<th scope="col">value</th>
<th style="width: 400px" scope="col" class="d-none d-sm-table-cell">tags</th>
<th scope="col">type</th>
<th scope="col" class="d-none d-sm-table-cell">timestamp</th>
<th scope="col" class="d-none d-sm-table-cell">distribution</th>
<th scope="col" class="text-end">actions</th>
</tr>
</thead>
<tbody>
Expand Down
12 changes: 7 additions & 5 deletions frontend/src/components/tags/TagsSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,19 @@ onMounted(() => {
},
render: {
option: function (data, escape) {
return '<span class="badge mx-1 tag" style="color: ' + escape(data.color) + '; background-color: ' + escape(data.backgroundColor) + '" title="' + escape(data.name) + '">' +
return '<span class="badge mx-1 tag" style="color: ' + escape(data.color) + '; background-color: ' + escape(data.backgroundColor) + ';" title="' + escape(data.name) + '">' +
escape(data.name) +
'</span>';
},
item: function (data, escape) {
return '<span class="badge mx-1 tag" style="color: ' + escape(data.color) + '; background-color: ' + escape(data.backgroundColor) + '" title="' + escape(data.name) + '">' +
return '<span class="badge mx-1 tag" style="display:block; color: ' + escape(data.color) + '; background-color: ' + escape(data.backgroundColor) + ';" title="' + escape(data.name) + '"><span class="tag-label">' +
escape(data.name) +
'</span>';
'<span/></span>';
}
},
onLoad() {
selectElement.value.tomselect.setValue(props.selectedTags.map(tag => tag.name), true);
let tags = props.selectedTags ? props.selectedTags.map(tag => tag.name) : [];
selectElement.value.tomselect.setValue(tags, true);
initialising = false;
},
onItemRemove: function (tag) {
Expand All @@ -97,7 +98,6 @@ onMounted(() => {
if (initialising) {
return;
}
console.log(item);
if (props.modelClass == "event") {
eventsStore.tag(props.model.id, tag);
return;
Expand All @@ -113,6 +113,8 @@ onMounted(() => {
</script>

<style></style>

<template>
<select ref="selectElement" multiple>
</select>
Expand Down

0 comments on commit 005e858

Please sign in to comment.