Skip to content

Commit

Permalink
update 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
huanhe4096 committed Dec 11, 2024
1 parent 004472e commit c5101f9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ The translate, llama model, and other services can be started separately. Please

# Updates

## 0.7.2

- Fixed selection color bug
- Updated style of hovering

## 0.7.1

- Add setting for translation service
Expand Down
2 changes: 1 addition & 1 deletion web/src/DataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { translator } from './utils/translator';

export const useDataStore = defineStore('jarvis', {
state: () => ({
version: '0.7.1',
version: '0.7.2',
config: {
api_server_url: "http://localhost:8123",
api_server_token: "",
Expand Down
21 changes: 17 additions & 4 deletions web/src/components/ItemList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ const items = ref([
label: 'By PMID (desc)',
icon: 'pi pi-sort-numeric-down-alt'
}
])
]);
function isCurrentItem(item) {
if (store.working_item == null) {
return false;
}
return store.working_item.pmid == item.pmid;
}
</script>


Expand Down Expand Up @@ -81,8 +88,8 @@ const items = ref([
</Toolbar>
</div>
<div class="item-main-list">
<div v-for="item, item_idx in store.filterred_items" :key="item.id"
:class="{'current-item': store.working_item_idx == item_idx}"
<div v-for="item, item_idx in store.filterred_items" :key="item.pmid"
:class="{'current-item': isCurrentItem(item)}"
@click="onClickItem(item)"
class="item">
<div class="left">
Expand Down Expand Up @@ -179,7 +186,7 @@ const items = ref([
align-items: center;
}
.item:hover {
background-color: #eaeaea;
background-color: #d9d9d9;
}
.item:hover .right {
display: inline-block;
Expand Down Expand Up @@ -228,6 +235,9 @@ const items = ref([
.current-item {
background-color: #7abdf3;
}
.current-item:hover {
background-color: #acd6f9;
}
.current-item .item-id {
font-weight: bold;
}
Expand All @@ -238,5 +248,8 @@ const items = ref([
.current-item {
background-color: #295070;
}
.current-item:hover {
background-color: #314f67;
}
}
</style>

0 comments on commit c5101f9

Please sign in to comment.