code: def fix_size(self, content):
          
          # Update size of dialog based on relative size of the parent
          if content:
              width, height = self.get_item_size(content)
  
              # Width
              parent = self.parent()
              relative_width = parent.geometry().width() * 0.65
              if relative_width > self.MAX_WIDTH:
                  relative_width = self.MAX_WIDTH
              self.list.setMinimumWidth(relative_width)
  
              # Height
              if len(content) < 15:
                  max_entries = len(content)
              else:
                  max_entries = 15
              max_height = height * max_entries * 1.7
              self.list.setMinimumHeight(max_height)
  
              # Resize
              self.list.resize(relative_width, self.list.height())
docs: Adjusts the width and height of the file switcher
          based on the relative size of the parent and content.