# Finding a file in the codebase

**URL:** <https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465>\
**Category:** Site discussion\
**Tags:** wiki\
**Created:** [February 27, 2024, 7:21pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465 "2024-02-27T19:21:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![passerby](https://community.metabrainz.org/user_avatar/community.metabrainz.org/passerby/32/77941_2.png) [@passerby](https://community.metabrainz.org/u/passerby)\
**Post date:** [February 27, 2024, 7:21pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/1 "2024-02-27T19:21:10Z")

</div>

i was surfing the wiki.musicbrainz on my mobile and realized it is not responsive and mobile optimised(wondering how is it still unnoticed or am i misundertanding something) and now i’m finding the repo related to the site to make necessary code changes. any help would be really nice. i’m talking about this [Development/Summer of Code - MusicBrainz Wiki](https://wiki.musicbrainz.org/Development/Summer_of_Code)

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [February 27, 2024, 7:49pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/2 "2024-02-27T19:49:40Z")

</div>

In the meantime, you can use a small user stylesheet to fix the biggest issue of half page margin:

> [@MB wiki skin monobook bug on mobile](https://community.metabrainz.org/t/mb-wiki-skin-monobook-bug-on-mobile/603441):
>
> The monobook skin version used on MB’s MediaWiki wiki has a bug on mobile. The #content element has a margin-left: 12.5em that should be removed when screen width is narrow like on mobile: On desktop, it leaves room for the left sidebar. But on mobile, there is no sidebar, there is a pop-over menu instead. It is simple to fix and it would allow mobile phones to browse [wiki.musicbrainz.org](http://wiki.musicbrainz.org) in a legible way. I would lik…

---

<div class="post-metadata">

**Author:** ![aerozol](https://community.metabrainz.org/user_avatar/community.metabrainz.org/aerozol/32/116_2.png) [@aerozol](https://community.metabrainz.org/u/aerozol)\
**Post date:** [February 27, 2024, 8:34pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/3 "2024-02-27T20:34:29Z")

</div>

@yvanzo might be able to help 🙂

---

<div class="post-metadata">

**Author:** ![derat](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@derat](https://community.metabrainz.org/u/derat)\
**Post date:** [February 28, 2024, 11:30am UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/4 "2024-02-28T11:30:51Z")

</div>

**Edit:** I misread the original post; the below is referring to `/doc` pages, not the `wiki.musicbrainz.org` site that’s the source of those pages. Sorry for the confusion.

I posted about this a while back at [Making documentation pages usable on mobile devices](https://community.metabrainz.org/t/making-documentation-pages-usable-on-mobile-devices/602956).

The stylesheet for documentation pages looks like it’s at [https://github.com/metabrainz/musicbrainz-server/blob/master/root/static/styles/extra/wikidocs.less](https://github.com/metabrainz/musicbrainz-server/blob/master/root/static/styles/extra/wikidocs.less), so I’ve uploaded my proposed fix at [https://github.com/metabrainz/musicbrainz-server/pull/3187](https://github.com/metabrainz/musicbrainz-server/pull/3187).

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [February 28, 2024, 12:01pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/5 "2024-02-28T12:01:01Z")

</div>

@derat have you included that `margin-left: 12.5em` issue fix?  
See [screenshot](https://community.metabrainz.org/t/mb-wiki-skin-monobook-bug-on-mobile/603441).

---

<div class="post-metadata">

**Author:** ![reosarevok](https://community.metabrainz.org/user_avatar/community.metabrainz.org/reosarevok/32/69228_2.png) [@reosarevok](https://community.metabrainz.org/u/reosarevok)\
**Post date:** [February 28, 2024, 12:11pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/6 "2024-02-28T12:11:53Z")

</div>

For what it’s worth, this should just apply to `/doc` pages, right? While the original post was about the `wiki.musicbrainz` version which I assume uses whatever our MediaWiki config is?

---

<div class="post-metadata">

**Author:** ![derat](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@derat](https://community.metabrainz.org/u/derat)\
**Post date:** [February 28, 2024, 12:17pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/7 "2024-02-28T12:17:42Z")

</div>

Whoops, my mistake. Yes, my change was for transcluded `/doc` pages, not the MediaWiki pages that are being discussed here.

---

<div class="post-metadata">

**Author:** ![passerby](https://community.metabrainz.org/user_avatar/community.metabrainz.org/passerby/32/77941_2.png) [@passerby](https://community.metabrainz.org/u/passerby)\
**Post date:** [February 28, 2024, 5:07pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/8 "2024-02-28T17:07:14Z")

</div>

thanks for the info, well so it means that we don’t have the concerned file in any MB github repo to make the changes?

---

<div class="post-metadata">

**Author:** ![passerby](https://community.metabrainz.org/user_avatar/community.metabrainz.org/passerby/32/77941_2.png) [@passerby](https://community.metabrainz.org/u/passerby)\
**Post date:** [February 28, 2024, 5:09pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/9 "2024-02-28T17:09:38Z")

</div>

@yvanzo hey! can you help?

---

<div class="post-metadata">

**Author:** ![yvanzo](https://community.metabrainz.org/user_avatar/community.metabrainz.org/yvanzo/32/2864_2.png) [@yvanzo](https://community.metabrainz.org/u/yvanzo)\
**Post date:** [February 29, 2024, 8:24am UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/10 "2024-02-29T08:24:49Z")

</div>

Hi @passerby!

It’s a [MediaWiki](https://www.mediawiki.org) instance. The _codebase_ for MediaWiki lives in [their own Gerrit](https://gerrit.wikimedia.org/g/mediawiki/core/%2B/HEAD/) instance. If creating an MB repository on GitHub, I don’t know what files would need to be in it.

This instance was maintained by volunteers for years, and I’m now _helping as much as possible_ to maintain it, but I’m in no way an expert, so any helping hand is welcome.

I’m currently planning to upgrade MediaWiki to its latest LTS version 1.39. It comes with a new skin [Minerva](https://www.mediawiki.org/wiki/Skin:Minerva_Neue) which is optimized for use with the extension [MobileFrontend](https://www.mediawiki.org/wiki/Extension:MobileFrontend) that has been suggested since [OTHER-342](https://tickets.metabrainz.org/browse/OTHER-342).

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [February 29, 2024, 5:33pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/11 "2024-02-29T17:33:11Z")

</div>

There is a CSS where there is:

```css
@media screen and (max-width: 550px) {
…

```

It is where they have put there mobile related styling, but I don’t know where it is.

Can you find this stylesheet and insert the following line, inside these brackets?

> <https://github.com/jesus2099/konami-command/blob/cabb6be9f6675073d935470191dc39471592a089/mb-wiki_MOBILE-NARROW-LAYOUT-FIX.user.css#L12-L14>

---

<div class="post-metadata">

**Author:** ![passerby](https://community.metabrainz.org/user_avatar/community.metabrainz.org/passerby/32/77941_2.png) [@passerby](https://community.metabrainz.org/u/passerby)\
**Post date:** [February 29, 2024, 5:54pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/12 "2024-02-29T17:54:31Z")

</div>

Hi @yvanzo thats a great upgrade, please let me know if could be of any help to you in transitioning it to the latest version or anything related to making it more mobile friendly in general.

---

<div class="post-metadata">

**Author:** ![passerby](https://community.metabrainz.org/user_avatar/community.metabrainz.org/passerby/32/77941_2.png) [@passerby](https://community.metabrainz.org/u/passerby)\
**Post date:** [February 29, 2024, 6:01pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/13 "2024-02-29T18:01:15Z")

</div>

thanks @jesus2099 will surely try to find this css file once i get time, currently need to meet some deadlines, haha.

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [February 29, 2024, 8:15pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/14 "2024-02-29T20:15:02Z")

</div>

@yvanzo

I see stylesheets in [the monobook skin repo](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/MonoBook/), but [it is a more recent version](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/MonoBook/+/refs/heads/master/resources/), apparently.

There are [version tags](https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/skins/MonoBook/+refs) but do you know what version of monobook theme we have?

---

<div class="post-metadata">

**Author:** ![aerozol](https://community.metabrainz.org/user_avatar/community.metabrainz.org/aerozol/32/116_2.png) [@aerozol](https://community.metabrainz.org/u/aerozol)\
**Post date:** [February 29, 2024, 8:15pm UTC](https://community.metabrainz.org/t/finding-a-file-in-the-codebase/683465/15 "2024-02-29T20:15:23Z")

</div>

> [@yvanzo](#):
>
> It’s a [MediaWiki](https://www.mediawiki.org) instance. The _codebase_ for MediaWiki lives in [their own Gerrit](https://gerrit.wikimedia.org/g/mediawiki/core/%2B/HEAD/) instance.

I have added this to the [Wiki home page](https://wiki.musicbrainz.org/Main_Page) (home page for now, because it is just a paragraph).

Questions (and complaints) about the wiki come up every so often, so it would be great to get some updates - but if this thread leads to information and help on _how_ more users can update and maintain that would be amazing 🥰
