Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696409
D1567.id5282.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
934 B
Subscribers
None
D1567.id5282.diff
View Options
diff --git a/swh/web/assets/src/bundles/browse/swh-ids-utils.js b/swh/web/assets/src/bundles/browse/swh-ids-utils.js
--- a/swh/web/assets/src/bundles/browse/swh-ids-utils.js
+++ b/swh/web/assets/src/bundles/browse/swh-ids-utils.js
@@ -9,6 +9,8 @@
import 'thirdparty/jquery.tabSlideOut/jquery.tabSlideOut';
import 'thirdparty/jquery.tabSlideOut/jquery.tabSlideOut.css';
+import {BREAKPOINT_SM} from 'utils/constants';
+
export function swhIdObjectTypeToggled(event) {
event.preventDefault();
$(event.target).tab('show');
@@ -85,7 +87,15 @@
}
let tabSlideOptions = {
- tabLocation: 'right'
+ tabLocation: 'right',
+ offset: function() {
+ const width = $(window).width();
+ if (width < BREAKPOINT_SM) {
+ return '250px';
+ } else {
+ return '200px';
+ }
+ }
};
// ensure tab scrolling on small screens
if (window.innerHeight < 600 || window.innerWidth < 500) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 8:01 PM (5 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215407
Attached To
D1567: Move Permalinks tabSlideout down in xs screens
Event Timeline
Log In to Comment