Skip to content

Commit

Permalink
enhance(client): html-app-container css (#1476)
Browse files Browse the repository at this point in the history
* enhance(client): html-app-container css

- remove old global styles
- add new styles where they are used

* style(client): lint
  • Loading branch information
wesleyboar authored Oct 16, 2024
1 parent cf5bb9f commit aa08e32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion client/src/workspace/layouts/AppsViewLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export const AppsViewLayout: React.FC = () => {
</Flex>
</Header>
{htmlApp ? (
<div className={styles['overflow']}>
<div
className={`${styles['overflow']} ${styles['html-app-container']}`}
>
{parse(htmlApp.html as string)}
</div>
) : (
Expand Down
6 changes: 6 additions & 0 deletions client/src/workspace/layouts/layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
overflow: auto;
}

.html-app-container {
& p {
margin-block: 1em 2em;
}
}

.appDetail-placeholder-message {
display: flex;
justify-content: center;
Expand Down
5 changes: 0 additions & 5 deletions designsafe/static/styles/ng-designsafe.css
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,3 @@ i[class^="icon-ls-pre/post"]:before,
:root {
color-scheme: only light !important;
}

.html-app-container {
padding: 30px !important;
margin-top: 20px !important;
}

0 comments on commit aa08e32

Please sign in to comment.