Skip to content

Commit

Permalink
1.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Mar 7, 2023
1 parent 4ce7bc5 commit 10f165b
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 123 deletions.
11 changes: 6 additions & 5 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"customSyntax": "@stylelint/postcss-css-in-js",
"files": [
"src/**/*.{jsx,tsx}"
]
],
"rules": {
"at-rule-empty-line-before": "never",
"comment-no-empty": null
}
}
],
"rules": {
"scss/comment-no-empty": null
}
]
}
200 changes: 100 additions & 100 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hitofude",
"private": true,
"version": "1.3.0",
"version": "1.3.1",
"scripts": {
"start": "vite",
"build": "tsc && vite build",
Expand Down
2 changes: 0 additions & 2 deletions src/features/home/pages/HomePage.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ function HomePage(props: HomePageProps) {
<div
css={css`
display: grid;
@media (max-width: 959px) {
grid-template-rows: auto auto;
grid-template-columns: auto;
grid-gap: 2rem;
padding: 2rem;
}
@media (min-width: 960px) {
grid-template-rows: auto;
grid-template-columns: auto auto;
Expand Down
10 changes: 2 additions & 8 deletions src/features/main/components/MarkdownControl.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ function MarkdownControl(props: MarkdownControlProps) {
display: grid;
grid-gap: 0.5rem;
padding: 1rem;
@media (max-width: 959px) {
grid-template-rows: auto auto 1fr;
grid-template-columns: auto;
}
@media (min-width: 960px) {
grid-template-rows: 3rem 1fr;
grid-template-columns: 1fr auto;
Expand All @@ -83,7 +81,6 @@ function MarkdownControl(props: MarkdownControlProps) {
display: grid;
align-items: center;
justify-content: left;
@media (min-width: 960px) {
grid-row: 1 / 2;
grid-column: 1 / 2;
Expand All @@ -109,14 +106,13 @@ function MarkdownControl(props: MarkdownControlProps) {
grid-gap: 0.5rem;
align-items: center;
justify-content: right;
@media (min-width: 960px) {
grid-row: 1 / 2;
grid-column: 2 / 3;
}
`}>
{
value.editable ? (
value.editing ? (
<div
css={css`
display: flex;
Expand Down Expand Up @@ -180,19 +176,17 @@ function MarkdownControl(props: MarkdownControlProps) {
display: grid;
overflow-x: auto;
overflow-y: auto;
@media (max-width: 959px) {
height: calc(100vh - 9.5rem);
}
@media (min-width: 960px) {
grid-row: 2 / 3;
grid-column: 1 / 3;
height: calc(100vh - 7.5rem);
}
`}>
{
value.editable ? (
value.editing ? (
<Controller
control={form.control}
name="content"
Expand Down
6 changes: 3 additions & 3 deletions src/features/main/components/MarkdownControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function MarkdownControl() {
dispatch(setWorkFile({
...file,
content: data,
editable: false
editing: false
}));
} catch (e) {
dispatch(setError(e as Error));
Expand All @@ -59,7 +59,7 @@ function MarkdownControl() {
}
dispatch(setWorkFile({
...workFile,
editable: false
editing: false
}));
} catch (e) {
dispatch(setError(e as Error));
Expand All @@ -76,7 +76,7 @@ function MarkdownControl() {
}
dispatch(setWorkFile({
...workFile,
editable: true
editing: true
}));
} catch (e) {
dispatch(setError(e as Error));
Expand Down
2 changes: 1 addition & 1 deletion src/features/main/components/TreeItemControl.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function TreeItemControl(props: TreeItemControlProps) {
grid-gap: 0.5rem;
align-items: center;
justify-content: start;
padding: 0.5rem 0 0.5rem 0.5rem;
padding: 0.5rem;
`}
onClick={onClick}>
{icon}
Expand Down
2 changes: 0 additions & 2 deletions src/features/main/pages/MainPage.presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function MainPage(props: MainPageProps) {
css={css`
display: grid;
margin: 2rem 0 0;
@media (max-width: 959px) {
grid-template-rows: calc(100vh - 2rem);
grid-template-columns: auto 1fr;
Expand All @@ -91,7 +90,6 @@ function MainPage(props: MainPageProps) {
margin: 0 0 0 3rem;
}
}
@media (min-width: 960px) {
grid-template-rows: calc(100vh - 2rem);
grid-template-columns: auto auto 1fr;
Expand Down
2 changes: 1 addition & 1 deletion src/types/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface File {

export interface FileContent {
content: string,
editable?: boolean
editing?: boolean
}

export interface Folder {
Expand Down

0 comments on commit 10f165b

Please sign in to comment.