Skip to content

Commit

Permalink
style: move inline styles to css file
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Jan 6, 2024
1 parent c9ff5eb commit bb494b7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
4 changes: 1 addition & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class IBookHighlightsPlugin extends Plugin {

async onload() {
await this.loadSettings();
const ribbonIconEl = this.addRibbonIcon('book-open', pluginName, async () => {
this.addRibbonIcon('book-open', pluginName, async () => {
await this.importHighlights().then(() => {
new Notice('Apple Books highlights imported successfully');
}).catch((error) => {
Expand All @@ -26,8 +26,6 @@ export default class IBookHighlightsPlugin extends Plugin {
});
});

ribbonIconEl.addClass('my-plugin-ribbon-class');

this.addSettingTab(new IBookHighlightsSettingTab(this.app, this));

this.addCommand({
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "apple-books-import-highlights",
"name": "Apple Books - Import Highlights",
"version": "1.0.0",
"version": "1.0.1",
"minAppVersion": "0.15.0",
"description": "Import your Apple Books highlights and notes to Obsidian.",
"author": "bandantonio",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-apple-books-highlights-plugin",
"version": "1.0.0",
"version": "1.0.1",
"description": "Import highlights and notes from your Apple Books to Obsidian",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 0 additions & 3 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class IBookHighlightsSettingTab extends PluginSettingTab {
.setDesc('Template for highlight files')
.setClass("ibooks-highlights-template")
.addTextArea((text) => {
text.inputEl.style.width = '100%';
text.inputEl.style.height = '300px';
text.inputEl.style.overflow = 'auto';
text
.setPlaceholder('Template')
.setValue(this.plugin.settings.template)
Expand Down
13 changes: 5 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.ibooks-highlights-template > .setting-item-control > textarea {
width: 100%;
height: 350px;
overflow: auto;
}
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"1.0.0": "0.15.0"
"1.0.0": "0.15.0",
"1.0.1": "0.15.0"
}

0 comments on commit bb494b7

Please sign in to comment.