Skip to content

Commit

Permalink
Bug and Style Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Jul 14, 2022
1 parent b49d5b3 commit a879492
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
20 changes: 18 additions & 2 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ body {
}
}
}
& + a:link {
position: absolute;
top: 1.5em;
right: 2em;
border: none;
background-color: #555;
color: white;
line-height: 2.5;
font-size: 1.06rem;
padding: 0 1.25em;
border-radius: 9999px;
transition: 0.2s;
&:hover {
background-color: #606060;
}
}
}
.add-schema {
position: relative;
Expand Down Expand Up @@ -157,8 +173,8 @@ body {
padding: 0 0 0 0.6em;
}
label {
display: inline;
margin-right: 0.4em;
display: inline-block;
margin: 0 0.4em 0.2em 0;
white-space: nowrap;
&:first-child select {
margin: 0;
Expand Down
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function App() {
<span onClick={showAbout}>切韻音系自動推導器</span>
</h1>
</nav>
<a href="https://graphemecluster.github.io/qieyun-autoderiver">試用 v0.2 beta 版</a>
</header>
<Main />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import withReactContent from "sweetalert2-react-content";
// 推導方案(及控制臺)用
// XXX 之後改成 new Function 時作為參數(然後再 bind 或閉包一下就不用每次都傳了)
import * as Qieyun from "qieyun";
(global as any).Qieyun = Qieyun;
(window as any).Qieyun = Qieyun;

const { query字頭, iter音韻地位, query音韻地位 } = 資料;

Expand Down Expand Up @@ -228,7 +228,7 @@ class Main extends React.Component<any, MainState> {
};

if (this.state.option === "convertPresetArticle" && !presetArticle) {
fetchFile("https://cdn.jsdelivr.net/gh/nk2028/qieyun-text-label@360e36b/index.txt", article => {
fetchFile("https://cdn.jsdelivr.net/gh/nk2028/qieyun-text-label@main/index.txt", article => {
presetArticle = article;
this.handlePredefinedOptions();
});
Expand Down

0 comments on commit a879492

Please sign in to comment.