Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

行番号を表示するオプション機能をつける #1272

Merged
merged 10 commits into from
Apr 8, 2023
Prev Previous commit
Next Next commit
Fmt: 余計な改行を削除
wappon28dev committed Apr 1, 2023
commit 52c40f9f03eba5fe51d8d31de272193c5bb93f63
4 changes: 1 addition & 3 deletions src/components/AudioCell.vue
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@
size="sm"
class="absolute active-arrow"
/>

<div
class="line-number"
:class="{ active: isActiveAudioCell }"
@@ -194,15 +193,14 @@ const pasteOnAudioCell = async (event: ClipboardEvent) => {
}
};
// 行番号を表示するかどうか
const showLineNumbers = computed(
() => store.state.experimentalSetting.showAudioCellLineNumber
);
// 行番号
const lineNumberIndex = computed(() => {
return audioKeys.value.indexOf(props.audioKey) + 1;
});
// 行番号の幅: 3桁はデフォで入るように, 4桁以上は1remずつ広げる
const lineNumberWidth = computed(() => {
const indexDigits = String(audioKeys.value.length).length;