mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 06:59:02 +00:00
Merge branch 'main' into feat/vote-components
This commit is contained in:
commit
c7aa92706b
|
@ -21,14 +21,10 @@
|
||||||
"@typescript-eslint/explicit-module-boundary-types": 0,
|
"@typescript-eslint/explicit-module-boundary-types": 0,
|
||||||
"@typescript-eslint/no-empty-function": 0,
|
"@typescript-eslint/no-empty-function": 0,
|
||||||
"arrow-body-style": 0,
|
"arrow-body-style": 0,
|
||||||
"jsx-a11y/alt-text": 1,
|
|
||||||
"jsx-a11y/anchor-is-valid": 1,
|
"jsx-a11y/anchor-is-valid": 1,
|
||||||
"jsx-a11y/aria-activedescendant-has-tabindex": 1,
|
|
||||||
"jsx-a11y/aria-role": 1,
|
"jsx-a11y/aria-role": 1,
|
||||||
"jsx-a11y/click-events-have-key-events": 1,
|
"jsx-a11y/click-events-have-key-events": 1,
|
||||||
"jsx-a11y/interactive-supports-focus": 1,
|
|
||||||
"jsx-a11y/no-static-element-interactions": 1,
|
"jsx-a11y/no-static-element-interactions": 1,
|
||||||
"jsx-a11y/role-has-required-aria-props": 1,
|
|
||||||
"curly": 0,
|
"curly": 0,
|
||||||
"eol-last": 0,
|
"eol-last": 0,
|
||||||
"eqeqeq": 0,
|
"eqeqeq": 0,
|
||||||
|
|
|
@ -35,7 +35,7 @@ export class App extends Component<any, any> {
|
||||||
<div id="app" className="lemmy-site">
|
<div id="app" className="lemmy-site">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn btn-text skip-link bg-light position-absolute start-0 z-3"
|
className="btn skip-link bg-light position-absolute start-0 z-3"
|
||||||
onClick={linkEvent(this, this.handleJumpToContent)}
|
onClick={linkEvent(this, this.handleJumpToContent)}
|
||||||
>
|
>
|
||||||
{I18NextService.i18n.t("jump_to_content", "Jump to content")}
|
{I18NextService.i18n.t("jump_to_content", "Jump to content")}
|
||||||
|
|
|
@ -585,9 +585,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
suggestedTitle && (
|
suggestedTitle && (
|
||||||
<div
|
<button
|
||||||
className="mt-1 text-muted small fw-bold pointer"
|
type="button"
|
||||||
role="button"
|
className="mt-1 small border-0 bg-transparent p-0 d-block text-muted fw-bold pointer"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
{ i: this, suggestedTitle },
|
{ i: this, suggestedTitle },
|
||||||
copySuggestedTitle
|
copySuggestedTitle
|
||||||
|
@ -595,7 +595,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
>
|
>
|
||||||
{I18NextService.i18n.t("copy_suggested_title", { title: "" })}{" "}
|
{I18NextService.i18n.t("copy_suggested_title", { title: "" })}{" "}
|
||||||
{suggestedTitle}
|
{suggestedTitle}
|
||||||
</div>
|
</button>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,12 +247,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="my-2 d-block d-sm-none">
|
<div className="my-2 d-block d-sm-none">
|
||||||
<a
|
<button
|
||||||
className="d-inline-block"
|
type="button"
|
||||||
|
className="p-0 border-0 bg-transparent d-inline-block"
|
||||||
onClick={linkEvent(this, this.handleImageExpandClick)}
|
onClick={linkEvent(this, this.handleImageExpandClick)}
|
||||||
>
|
>
|
||||||
<PictrsImage src={this.imageSrc} />
|
<PictrsImage src={this.imageSrc} />
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -109,17 +109,17 @@ export class PrivateMessage extends Component<
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<div
|
<button
|
||||||
role="button"
|
type="button"
|
||||||
className="pointer text-monospace"
|
className="pointer text-monospace p-0 bg-transparent border-0 d-block"
|
||||||
onClick={linkEvent(this, this.handleMessageCollapse)}
|
onClick={linkEvent(this, this.handleMessageCollapse)}
|
||||||
>
|
>
|
||||||
{this.state.collapsed ? (
|
{this.state.collapsed ? (
|
||||||
<Icon icon="plus-square" classes="icon-inline" />
|
<Icon icon="plus-square" />
|
||||||
) : (
|
) : (
|
||||||
<Icon icon="minus-square" classes="icon-inline" />
|
<Icon icon="minus-square" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{this.state.showEdit && (
|
{this.state.showEdit && (
|
||||||
|
|
Loading…
Reference in a new issue