Skip to content

Commit

Permalink
fix: tailwind styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Dec 31, 2024
1 parent b42edb6 commit ac2aac2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/plugin/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ module.exports = {
corePlugins: {
preflight: false, // Keeps Obsidian's base styles
},
important: '#app',
}
7 changes: 4 additions & 3 deletions packages/plugin/views/assistant/ai-chat/audio-recorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ export const AudioRecorder: React.FC<AudioRecorderProps> = ({

return (
<div className="flex flex-col gap-4">
<button
<Button
onClick={isRecording ? stopRecording : startRecording}
className={cn(
"bg-transparent opacity-50 cursor-pointer",
// box shadow none
"bg-transparent opacity-50 cursor-pointer shadow-lg ",
"hover:opacity-100 hover:shadow-none",
"shadow-none disabled:shadow-none disabled:cursor-not-allowed",
{
Expand All @@ -165,7 +166,7 @@ export const AudioRecorder: React.FC<AudioRecorderProps> = ({
) : (
<MicIcon className="w-4 h-4" />
)}
</button>
</Button>

{debug && recordings.length > 0 && (
<div className="flex flex-col gap-2 p-2 rounded bg-[--background-secondary]">
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin/views/assistant/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export class AssistantViewWrapper extends ItemView {
this.root?.render(
<AppContext.Provider value={{ plugin: this.plugin, root: this.root }}>
<React.StrictMode>
<div id="app">
<AssistantContent
plugin={this.plugin}
leaf={this.leaf}
Expand All @@ -194,6 +195,7 @@ export class AssistantViewWrapper extends ItemView {
this.setActiveTab = setTab;
}}
/>
</div>
</React.StrictMode>
</AppContext.Provider>
);
Expand Down

0 comments on commit ac2aac2

Please sign in to comment.