enhance(mobile): enhance References margin and padding

pull/3535/head
leizhe 2021-12-19 19:06:07 +08:00 committed by Tienson Qin
parent c5adb7457f
commit 969fec3c99
4 changed files with 16 additions and 4 deletions

View File

@ -160,6 +160,14 @@
}
}
html.is-mobile,
html.is-native-iphone,
html.is-native-android {
.references .block-control, .block-control:hover {
margin-left: -20px;
}
}
.block-ref {
border-bottom: 0.5px solid;
border-bottom-color: var(--ls-block-ref-link-text-color);

View File

@ -200,13 +200,13 @@
(when (and (not (mobile-util/is-native-platform?))
(not (util/electron?)))
(login logged?))
(when plugin-handler/lsp-enabled?
(plugins/hook-ui-items :toolbar))
(when (not= (state/get-current-route) :home)
(home-button))
(when (or (util/electron?)
(mobile-util/native-ios?))
(back-and-forward))

View File

@ -290,7 +290,7 @@
(when (util/safari?) (.add cl "is-safari"))
(when (mobile-util/native-ios?) (.add cl "is-native-ios"))
(when (mobile-util/native-android?) (.add cl "is-native-android"))
(when (mobile-util/native-iphone?) (.add cl "native-iphone"))
(when (mobile-util/native-iphone?) (.add cl "is-native-iphone"))
(when (util/electron?)
(js/window.apis.on "full-screen" #(js-invoke cl (if (= % "enter") "add" "remove") "is-fullscreen"))
(p/then (ipc/ipc :getAppBaseInfo) #(let [{:keys [isFullScreen]} (js->clj % :keywordize-keys true)]

View File

@ -129,12 +129,16 @@
}
}
html.is-native-andorid
html.is-native-andorid,
html.is-native-iphone
{
.ui__modal {
top: 22vh;
}
.references .foldable-title {
margin-left: 4px
}
}
html.is-mobile {