From 9193bd6a99379e057e8581b727c4edd0e5ed54c2 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 2 Mar 2024 08:20:41 -0500 Subject: [PATCH] Reset to the default scroll bar width --- res/css/_components.pcss | 3 +++ .../structures/_AutoHideScrollbar.pcss | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 res/css/_sc/feature-improvement/structures/_AutoHideScrollbar.pcss diff --git a/res/css/_components.pcss b/res/css/_components.pcss index 12d2457fc5d..88cc81e526f 100644 --- a/res/css/_components.pcss +++ b/res/css/_components.pcss @@ -382,3 +382,6 @@ @import "./voice-broadcast/atoms/_VoiceBroadcastRecordingConnectionError.pcss"; @import "./voice-broadcast/atoms/_VoiceBroadcastRoomSubtitle.pcss"; @import "./voice-broadcast/molecules/_VoiceBroadcastBody.pcss"; + +/* TODO: replace with a CSS file, on which custom CSS properties are collectively specified. */ +@import "./_sc/feature-improvement/structures/_AutoHideScrollbar.pcss"; diff --git a/res/css/_sc/feature-improvement/structures/_AutoHideScrollbar.pcss b/res/css/_sc/feature-improvement/structures/_AutoHideScrollbar.pcss new file mode 100644 index 00000000000..f01bab5a0a6 --- /dev/null +++ b/res/css/_sc/feature-improvement/structures/_AutoHideScrollbar.pcss @@ -0,0 +1,19 @@ +/* +Copyright 2024 Suguru Hirahara + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +* { + scrollbar-width: initial; /* Reset to the default value. See: https://github.com/SchildiChat/schildichat-desktop/issues/238 */ +}