Skip to content

Commit

Permalink
compatible with small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
suziwen committed Aug 16, 2024
1 parent aed9523 commit d4b01b3
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"browser_specific_settings": {
"gecko": {
"id": "suziwen1@gmail.com",
"strict_min_version": "92.0"
"strict_min_version": "112.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if not globalThis.window
window.UglifyJS_NoUnsafeEval = true

createContextMenu = ->
chrome.contextMenus.create({
chrome.contextMenus?.create({
id: 'enableQuickSwitch'
title: chrome.i18n.getMessage('contextMenu_enableQuickSwitch')
type: 'checkbox'
Expand Down
2 changes: 1 addition & 1 deletion omega-target-chromium-extension/src/module/options.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ChromeOptions extends OmegaTarget.Options
@ready.then( =>
@updateProfile()
)
chrome.contextMenus.onClicked.addListener((info, tab) =>
chrome.contextMenus?.onClicked.addListener((info, tab) =>
@ready.then( =>
switch info.menuItemId
when 'enableQuickSwitch'
Expand Down
6 changes: 3 additions & 3 deletions omega-web/lib/themes/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ fieldset[disabled] .form-control {

.alert-info {
color: var(--infoColor);
background-color: transparent;
background: var(--defaultBackground);
border-color: var(--lighterBackground);
position: relative;
}
.alert-success {
color: var(--positiveColor);
background-color: transparent;
background: var(--defaultBackground);
border-color: var(--lighterBackground);
position: relative;
}
Expand All @@ -191,7 +191,7 @@ fieldset[disabled] .form-control {

.alert-danger {
color: var(--negativeColor);
background-color: transparent;
background: var(--defaultBackground);
border-color: var(--lighterBackground);
position: relative;
}
Expand Down
35 changes: 35 additions & 0 deletions omega-web/src/less/options.less
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,41 @@ main {
.table-responsive .dropdown-menu {
position: static !important;
}
.btn {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.form-control {
line-height: 1;
padding: 0;
height: 25px;
}
main {
border-top: 3px dotted;
margin-top: 20px;
}
main .page-header{
padding: 20px 0;
}
select.form-control.inline-form-control {
display: block;
height: 25px;
margin: 20px 0;
width: 100% !important;
min-width: 100%;
}
textarea.width-limit{
max-width: 100%;
}
.settings-group > * {
margin-left: 0;
}
.profile-actions{
float: initial;
margin: 10px 0;
}
}

.fixed-servers,
Expand Down
2 changes: 1 addition & 1 deletion omega-web/src/options.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ doctype html
html(lang='en' ng-controller='MasterCtrl' ng-csp)
head
meta(charset='utf-8')
title(ng-bind="'options_title' | tr") SwitchyOmega Options
title {{'options_title' | tr}} (Z&#8203er&#8203oOmega)
meta(name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no')
link(rel='stylesheet' href='lib/bootstrap/css/bootstrap.min.css')
link(rel='stylesheet' href='lib/spectrum/spectrum.css')
Expand Down
2 changes: 1 addition & 1 deletion omega-web/src/popup.jade
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ doctype html
html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
head
meta(charset='utf-8')
title {{'popup_title' | tr}}
title {{'popup_title' | tr}} (Zer&#8203oOmega)
meta(name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no')
link(rel='stylesheet' href='lib/bootstrap/css/bootstrap.min.css')
link(rel='stylesheet' href='css/popup.css')
Expand Down
2 changes: 1 addition & 1 deletion omega-web/src/popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SwitchyOmega Popup</title>
<title>Z&#8203eroOmega Popup</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="css/index.css">
</head>
Expand Down

0 comments on commit d4b01b3

Please sign in to comment.