Skip to content

Commit

Permalink
修复布局错乱的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Sep 7, 2024
1 parent 2188785 commit 225a3cb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 1 addition & 5 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
增加更新红点提示

优化按钮图标样式

移动端优化
修复布局错乱的问题
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ani.rss</groupId>
<artifactId>ani-rss</artifactId>
<version>1.0.82</version>
<version>1.0.83</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ani/rss/util/MikanUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ public static List<Mikan.Group> getGroups(String url) {

List<TorrentsInfo> torrentsInfos = new ArrayList<>();
group.setItems(torrentsInfos);
String label = subgroupText.select("a.subgroup-name").text();
String label = subgroupText.select("a.subgroup-name").text().trim();
// id锚点,例如 #213
String id = subgroupText.select("a.subgroup-name").attr("data-anchor");
String attr = document.selectFirst(id).selectFirst(".mikan-rss").attr("href");
group.setLabel(label)
.setRss(host + attr);
groups.add(group);
// 字幕组更新日期
String day = subgroupText.select(".date").text();
String day = subgroupText.select(".date").text().trim();
group.setUpdateDay(day);

Element table = document.selectFirst(id).nextElementSibling();
Expand Down
4 changes: 3 additions & 1 deletion ui/src/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@
</div>
</div>
<div v-loading="actionLoading" id="menu">
<el-button type="success" v-if="about.update" @click="update" text bg icon="Top">更新</el-button>
<el-badge class="item" v-if="about.update" value="new">
<el-button type="success" @click="update" text bg icon="Top">更新</el-button>
</el-badge>
<div style="margin: 6px;" v-if="about.update"></div>
<el-button type="warning" @click="stop(0)" text bg icon="RefreshRight">重启 ani-rss</el-button>
<div style="margin: 6px;"></div>
Expand Down
8 changes: 5 additions & 3 deletions ui/src/Mikan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@
<el-collapse-item v-for="group in groups[it.url]">
<template #title>
<div style="width: 100%;display: flex;justify-content: space-between;">
<div>
<div style="flex: 1;text-align: start;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;">
{{ group.label }}
<el-text class="mx-1" size="small">{{ group['updateDay'] }}</el-text>
</div>
<div style="display: flex;align-items: center;margin-right: 15px;">
<div style="display: flex;align-items: center;margin-right: 14px;margin-left: 4px;">
<el-button text bg @click.stop="add(group['rss'])">
<el-icon class="el-icon--left">
<Plus/>
Expand Down Expand Up @@ -90,7 +93,6 @@
import {ref} from "vue";
import api from "./api.js";
import {ElMessage, ElText} from "element-plus";
import {Search} from "@element-plus/icons-vue";
let groupLoading = ref(false)
let activeName = ref("")
Expand Down

0 comments on commit 225a3cb

Please sign in to comment.