Add keyboard shortcut info banner to the boosting preferences section (#36506)
This commit is contained in:
@@ -139,24 +139,24 @@ export const Default = {
|
|||||||
Last pressed hotkey: <output>{matchedHotkey ?? 'None'}</output>
|
Last pressed hotkey: <output>{matchedHotkey ?? 'None'}</output>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Click within the dashed border and press the "<kbd>n</kbd>
|
Click within the dashed border and press the <kbd>n</kbd>
|
||||||
" or "<kbd>/</kbd>" key. Press "
|
or <kbd>/</kbd> key. Press
|
||||||
<kbd>Backspace</kbd>" to clear the displayed hotkey.
|
<kbd>Backspace</kbd> to clear the displayed hotkey.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Try typing a sequence, like "<kbd>g</kbd>" shortly
|
Try typing a sequence, like <kbd>g</kbd> shortly followed by{' '}
|
||||||
followed by "<kbd>h</kbd>", "<kbd>n</kbd>", or
|
<kbd>h</kbd>, <kbd>n</kbd>, or
|
||||||
"<kbd>f</kbd>"
|
<kbd>f</kbd>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Note that this playground doesn't support all hotkeys we use in
|
Note that this playground doesn't support all hotkeys we use in
|
||||||
the app.
|
the app.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
When a <button>Button</button> is focused, "
|
When a <button>Button</button> is focused,
|
||||||
<kbd>Enter</kbd>
|
<kbd>Enter</kbd>
|
||||||
" should not trigger "open", but "<kbd>o</kbd>
|
should not trigger open, but <kbd>o</kbd>
|
||||||
" should.
|
should.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
When an input element is focused, hotkeys should not interfere with
|
When an input element is focused, hotkeys should not interfere with
|
||||||
|
|||||||
@@ -524,3 +524,7 @@ a.sparkline {
|
|||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
background-color: color.change($ui-highlight-color, $alpha: 0.1);
|
||||||
|
}
|
||||||
|
|||||||
@@ -488,6 +488,14 @@ body,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
font-family: Courier, monospace;
|
||||||
|
background-color: color.change($ui-secondary-color, $alpha: 0.1);
|
||||||
|
padding: 4px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.filters {
|
.filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|||||||
@@ -755,6 +755,12 @@ code {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.hidden-on-touch-devices {
|
||||||
|
@media screen and (pointer: coarse) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: $darker-text-color;
|
color: $darker-text-color;
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
|
|
||||||
.fields-group
|
.fields-group
|
||||||
= ff.input :'web.reblog_modal', wrapper: :with_label, hint: I18n.t('simple_form.hints.defaults.setting_boost_modal'), label: I18n.t('simple_form.labels.defaults.setting_boost_modal')
|
= ff.input :'web.reblog_modal', wrapper: :with_label, hint: I18n.t('simple_form.hints.defaults.setting_boost_modal'), label: I18n.t('simple_form.labels.defaults.setting_boost_modal')
|
||||||
|
.flash-message.hidden-on-touch-devices= t('appearance.boosting_preferences_info_html', icon: material_symbol('repeat'))
|
||||||
|
|
||||||
%h4= t 'appearance.sensitive_content'
|
%h4= t 'appearance.sensitive_content'
|
||||||
|
|
||||||
|
|||||||
@@ -1191,6 +1191,7 @@ en:
|
|||||||
advanced_settings: Advanced settings
|
advanced_settings: Advanced settings
|
||||||
animations_and_accessibility: Animations and accessibility
|
animations_and_accessibility: Animations and accessibility
|
||||||
boosting_preferences: Boosting preferences
|
boosting_preferences: Boosting preferences
|
||||||
|
boosting_preferences_info_html: "<strong>Tip:</strong> Regardless of settings, <kbd>Shift</kbd> + <kbd>Click</kbd> on the %{icon} Boost icon will immediately boost."
|
||||||
discovery: Discovery
|
discovery: Discovery
|
||||||
localization:
|
localization:
|
||||||
body: Mastodon is translated by volunteers.
|
body: Mastodon is translated by volunteers.
|
||||||
|
|||||||
Reference in New Issue
Block a user