Skip to content

Commit

Permalink
Move stacks style to expanded card instead of globally
Browse files Browse the repository at this point in the history
  • Loading branch information
BaldissaraMatheus committed Oct 14, 2024
1 parent 296e2a7 commit ecd4bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/public/stylesheets/index-2.5.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ strong {
}

ul,
/* TODO explicit class styling because vite builds a different CSS file, once build config is changed this line can be removed */
.tags {
list-style-type: none;
margin: 0;
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/components/expanded-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
} from "solid-js";
import { api } from "../api";
import { StacksEditor } from "@stackoverflow/stacks-editor";
import "@stackoverflow/stacks-editor/dist/styles.css";
import "@stackoverflow/stacks";
import "@stackoverflow/stacks/dist/css/stacks.css";
import stacksEditorStyle from "@stackoverflow/stacks-editor/dist/styles.css?inline";
import stacksStyle from "@stackoverflow/stacks/dist/css/stacks.css?inline";
import { Menu } from "./menu";
import { handleKeyDown, clickOutside } from "../utils";
import { makePersisted } from "@solid-primitives/storage";
Expand Down Expand Up @@ -460,6 +460,12 @@ function ExpandedCard(props) {
</For>
</div>
<div class="dialog__content">
<style>
{stacksStyle}
</style>
<style>
{stacksEditorStyle}
</style>
<div
id="editor-container"
autofocus
Expand Down

0 comments on commit ecd4bdb

Please sign in to comment.