Skip to content

Commit

Permalink
Ensure the max width value of the tooltip is used only on settings ta…
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul authored Jun 25, 2022
1 parent 814ca68 commit 3ecf7e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions res/css/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,6 @@ legend {
margin-right: 100px;
}

@define-mixin mx_Settings_tooltip {
// So it fits in the space provided by the page
max-width: 120px;
}

@define-mixin ProgressBarColour $colour {
color: $colour;
&::-moz-progress-bar {
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/settings/_SetIdServer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ limitations under the License.
}

.mx_SetIdServer_tooltip {
@mixin mx_Settings_tooltip;
max-width: var(--SettingsTab_tooltip-max-width);
}
2 changes: 2 additions & 0 deletions res/css/views/settings/tabs/_SettingsTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ limitations under the License.

.mx_SettingsTab {
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
--SettingsTab_tooltip-max-width: 120px; // So it fits in the space provided by the page

color: $primary-content;

a {
Expand Down

0 comments on commit 3ecf7e1

Please sign in to comment.