-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove machine translation quick button revisions list. Fixes #423
- Loading branch information
Showing
17 changed files
with
24 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,18 +41,6 @@ export default gql` | |
tag | ||
} | ||
revision { | ||
id | ||
slug | ||
rtl | ||
language { | ||
id | ||
slug | ||
rtl | ||
} | ||
} | ||
document { | ||
id | ||
path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ export default gql` | |
rtl | ||
} | ||
} | ||
document { | ||
id | ||
path | ||
|
74 changes: 0 additions & 74 deletions
74
webapp/app/styles/components/inline-machine-translate.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +0,0 @@ | ||
.prompt-button { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
|
||
> .button { | ||
transition: opacity 0.2s ease-in-out; | ||
box-shadow: none; | ||
opacity: 0.7; | ||
border-radius: var(--border-radius); | ||
} | ||
|
||
> button:focus, | ||
> button:hover { | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
&:focus, | ||
&:hover { | ||
outline: none; | ||
|
||
> .button { | ||
opacity: 1; | ||
} | ||
|
||
.prompt-button-quick-access[data-rtl] { | ||
transform: translateX(40px); | ||
} | ||
|
||
.prompt-button-quick-access { | ||
opacity: 1; | ||
transform: translateX(-40px); | ||
padding: 0 5px; | ||
pointer-events: all; | ||
} | ||
} | ||
} | ||
|
||
.prompt-button-quick-access[data-rtl] { | ||
left: 0; | ||
right: auto; | ||
justify-content: flex-start; | ||
} | ||
|
||
.prompt-button-quick-access { | ||
background: var(--input-background); | ||
opacity: 0; | ||
pointer-events: none; | ||
border-radius: var(--border-radius); | ||
right: 0; | ||
display: flex; | ||
gap: 0; | ||
justify-content: flex-end; | ||
align-items: center; | ||
position: absolute; | ||
top: 0; | ||
transition: all 0.2s ease-in-out; | ||
|
||
> button { | ||
font-size: 11px; | ||
flex-shrink: 0; | ||
} | ||
|
||
> button:focus, | ||
> button:hover { | ||
background: var(--background-light); | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
> button :global(.label) { | ||
padding-left: 8px; | ||
padding-right: 8px; | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 9 additions & 19 deletions
28
webapp/app/templates/components/inline-machine-translate.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
{{#if @languages}} | ||
<div local-class='prompt-button' tabindex='0'> | ||
<div local-class='prompt-button-quick-access' data-rtl={{@rtl}}> | ||
{{#each @languages as |language|}} | ||
<AsyncButton | ||
title={{language.name}} | ||
@onClick={{(perform this.submitTask language.slug)}} | ||
class='tooltip tooltip--top button button--iconOnly button--borderless button--white' | ||
> | ||
{{language.slug}} | ||
</AsyncButton> | ||
{{/each}} | ||
</div> | ||
|
||
<button local-class='button' class='button button--iconOnly button--borderless button--filled button--white'> | ||
{{inline-svg '/assets/language.svg' class='button-icon'}} | ||
</button> | ||
</div> | ||
{{/if}} | ||
<AsyncButton | ||
local-class='button' | ||
title={{@languageSlug}} | ||
@onClick={{(perform this.submitTask @languageSlug)}} | ||
@loading={{this.isSubmitting}} | ||
class='button button--iconOnly button--borderless button--filled button--white' | ||
> | ||
{{inline-svg '/assets/language.svg' class='button-icon'}} | ||
</AsyncButton> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters